Skip to content

Commit

Permalink
Merge branch 'mr/ramonat/improve-wait-for-processes-test' into 'master'
Browse files Browse the repository at this point in the history
Make wait_for_processes test more reliable

See merge request it/e3-core!52
  • Loading branch information
enzbang committed Oct 21, 2024
2 parents 3784970 + 17f4781 commit 1a6bcce
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 1a6bcce

Please sign in to comment.