tests: fix timeout adjustement in delaypush.py stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 08 Mar 2023 00:46:53 +0100
branchstable
changeset 50273 5069a89a936e
parent 50272 8a65b43457ab
child 50274 0cc19a53cef4
tests: fix timeout adjustement in delaypush.py Doing integer arithmetic with string is bound to fail.
tests/test-push-race.t
--- 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