tests/test-push-race.t
branchstable
changeset 49656 c6f0bcb7bc57
parent 49306 2e726c934fcd
child 50286 5069a89a936e
--- a/tests/test-push-race.t	Wed Nov 23 14:42:11 2022 +0100
+++ b/tests/test-push-race.t	Thu Nov 24 10:34:34 2022 +0100
@@ -48,6 +48,14 @@
   >     if watchpath is not None:
   >         ui.status(b'waiting on: %s\n' % watchpath)
   >         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
+  >             and test_timeout is not None
+  >             and test_default_timeout < test_timeout
+  >         ):
+  >             limit = int(limit * (test_timeout / test_default_timeout))
   >         while 0 < limit and not os.path.exists(watchpath):
   >             limit -= 1
   >             time.sleep(0.1)