--- 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)