Show More
@@ -16,8 +16,10 b" environ = getattr(os, 'environ')" | |||||
16 |
|
16 | |||
17 | def _timeout_factor(): |
|
17 | def _timeout_factor(): | |
18 | """return the current modification to timeout""" |
|
18 | """return the current modification to timeout""" | |
19 |
default = int(environ.get('HGTEST_TIMEOUT_DEFAULT', |
|
19 | default = int(environ.get('HGTEST_TIMEOUT_DEFAULT', 360)) | |
20 | current = int(environ.get('HGTEST_TIMEOUT', default)) |
|
20 | current = int(environ.get('HGTEST_TIMEOUT', default)) | |
|
21 | if current == 0: | |||
|
22 | return 1 | |||
21 | return current / float(default) |
|
23 | return current / float(default) | |
22 |
|
24 | |||
23 |
|
25 |
General Comments 0
You need to be logged in to leave comments.
Login now