diff options
Diffstat (limited to 'tests/http/testenv/httpd.py')
-rw-r--r-- | tests/http/testenv/httpd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/http/testenv/httpd.py b/tests/http/testenv/httpd.py index 4c7874581..5b20d31e2 100644 --- a/tests/http/testenv/httpd.py +++ b/tests/http/testenv/httpd.py @@ -171,7 +171,8 @@ class Httpd: return False def wait_live(self, timeout: timedelta): - curl = CurlClient(env=self.env, run_dir=self._tmp_dir) + curl = CurlClient(env=self.env, run_dir=self._tmp_dir, + timeout=timeout.total_seconds()) try_until = datetime.now() + timeout while datetime.now() < try_until: r = curl.http_get(url=f'http://{self.env.domain1}:{self.env.http_port}/') |