From 4972fa1986c143191567a6763deb8450871cff06 Mon Sep 17 00:00:00 2001 From: postscript-dev Date: Mon, 14 Nov 2022 10:11:03 +0000 Subject: [PATCH] Fix "Windows MSYS2 UCRT64/Debug/Shared" build Build occasionally fails in `io_test` (`bashtest`) when using the server. Increase sleep timeout to prevent race condition. --- tests/bash_tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bash_tests/utils.py b/tests/bash_tests/utils.py index 95df4894e4..80f82ebd47 100644 --- a/tests/bash_tests/utils.py +++ b/tests/bash_tests/utils.py @@ -343,7 +343,7 @@ def start(self): log.info('Starting HTTP server ...') self.proc = multiprocessing.Process(target=self._start, name=str(self)) self.proc.start() - time.sleep(2) + time.sleep(5) try: with request.urlopen('http://127.0.0.1:{}'.format(self.port), timeout=3) as f: if f.status != 200: