Skip to content

Commit

Permalink
Better error message handling for test_distributed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Holmberg committed Aug 2, 2024
1 parent 434e19c commit 30fb35e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,14 @@ def t(self):
stdout=PIPE,
text=True,
)
try:
stdout = proc.communicate(timeout=9)[0]
except Exception:
proc.kill()
proc_worker.kill()
stdout = proc.communicate()[0]
worker_stdout = proc_worker.communicate()[0]
assert False, f"master never finished: {stdout}, worker output: {worker_stdout}"
stdout = proc.communicate()[0]
proc_worker.communicate()

Expand Down

0 comments on commit 30fb35e

Please sign in to comment.