Skip to content

Commit

Permalink
Make wait_for_processes test more reliable
Browse files Browse the repository at this point in the history
This test is often failing on GitLab, increase the timeout from
2 seconds to 4 seconds to see whether this helps.
  • Loading branch information
enzbang committed Oct 21, 2024
1 parent 3784970 commit 17f4781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_e3/os/process/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ def test_wait_for_processes():
bg=True,
)
for _ in range(2):
result = e3.os.process.wait_for_processes(process_list, 2)
result = e3.os.process.wait_for_processes(process_list, 4)
if result is not None:
del process_list[result]
assert len(process_list) == 0
assert len(process_list) == 0, [p.__dict__ for p in process_list]

assert p1.status == 0
assert p1.out.strip() == "process1"
Expand Down

0 comments on commit 17f4781

Please sign in to comment.