Skip to content

Commit

Permalink
Add check to see that stats are printed even when running LoadShapes.…
Browse files Browse the repository at this point in the history
… Reorder tests to better explain when we got a timeout.
  • Loading branch information
cyberw committed Oct 18, 2021
1 parent 58487b5 commit 224cd44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,11 @@ def tick(self):
proc.send_signal(signal.SIGTERM)
_, stderr = proc.communicate()
stderr = stderr.decode("utf-8")
self.assertIn("Aggregated", stderr) # make sure stats printer is working
self.assertIn("Shape test updating to 10 users at 1.00 spawn rate", stderr)
self.assertTrue(success, "got timeout and had to kill the process")
self.assertIn("Cleaning up runner...", stderr)
self.assertEqual(0, proc.returncode)
self.assertTrue(success, "got timeout and had to kill the process")

def test_autostart_wo_run_time(self):
port = get_free_tcp_port()
Expand Down

0 comments on commit 224cd44

Please sign in to comment.