Skip to content

Commit

Permalink
Increase wait time for os_fork_term (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Oct 25, 2023
1 parent 3ecd46a commit b7c6df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_multiprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def fib(n):
time.sleep(0.1)
print("parent")
else:
time.sleep(2.5)
time.sleep(4.5)
print("child")
"""

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b7c6df4

Please sign in to comment.