Skip to content

Commit

Permalink
Add test case that ensures there error messages in distributed mode a…
Browse files Browse the repository at this point in the history
…re not quoted an extra time.
  • Loading branch information
Lars Holmberg committed May 12, 2024
1 parent 947f541 commit eea90e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions locust/test/test_main.py
Expand Up @@ -2129,6 +2129,8 @@ def test_processes_ctrl_c(self):
self.assertIn("(index 3) reported as ready", stderr)
self.assertIn("The last worker quit, stopping test", stderr)
self.assertIn("Shutting down (exit code 0)", stderr)
# ensure no weird escaping in error report. Not really related to ctrl-c...
self.assertIn("GET /: ConnectionRefusedError(61, 'Connection refused')", stderr)

@unittest.skipIf(os.name == "nt", reason="--processes doesnt work on windows")
def test_workers_shut_down_if_master_is_gone(self):
Expand Down

0 comments on commit eea90e1

Please sign in to comment.