Mercurial > hg
changeset 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 | 8a65b43457ab |
children | 0cc19a53cef4 |
files | tests/test-push-race.t |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
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