Mercurial > hg
diff tests/test-push-race.t @ 50273:5069a89a936e stable
tests: fix timeout adjustement in delaypush.py
Doing integer arithmetic with string is bound to fail.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 08 Mar 2023 00:46:53 +0100 |
parents | c6f0bcb7bc57 |
children | 02eae2df911a |
line wrap: on
line diff
--- a/tests/test-push-race.t Thu Mar 02 23:45:30 2023 +0100 +++ b/tests/test-push-race.t Wed Mar 08 00:46:53 2023 +0100 @@ -50,6 +50,10 @@ > limit = 100 > test_default_timeout = os.environ.get('HGTEST_TIMEOUT_DEFAULT') > test_timeout = os.environ.get('HGTEST_TIMEOUT') + > if test_default_timeout is not None: + > test_default_timeout = int(test_default_timeout) + > if test_timeout is not None: + > test_timeout = int(test_timeout) > if ( > test_default_timeout is not None > and test_timeout is not None