From b7c6df42ad3182c439a9c5317e04ab0c0f64f30a Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Wed, 25 Oct 2023 15:53:07 -0700 Subject: [PATCH] Increase wait time for os_fork_term (#377) --- tests/test_multiprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_multiprocess.py b/tests/test_multiprocess.py index c6314c82..30610252 100644 --- a/tests/test_multiprocess.py +++ b/tests/test_multiprocess.py @@ -67,7 +67,7 @@ def fib(n): time.sleep(0.1) print("parent") else: - time.sleep(2.5) + time.sleep(4.5) print("child") """ @@ -307,7 +307,7 @@ def check_func(data): self.assertIn("Wait for child process", result.stdout.decode()) result = self.template(["viztracer", "-o", "result.json", "cmdline_test.py"], - send_sig=(signal.SIGINT, 2), expected_output_file="result.json", script=file_fork_wait, + send_sig=(signal.SIGINT, 3.5), expected_output_file="result.json", script=file_fork_wait, check_func=check_func_wrapper(1)) def test_multiprosessing(self):