Skip to content

Commit

Permalink
call quit method instead of quit event
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhaode authored Dec 20, 2021
1 parent 85e60db commit 0ddb00e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def _(*args, **kwargs):
self.assertEqual(2, worker.user_count)
# give time for users to generate stats, and stats to be sent to master
sleep(0.1)
master_env.events.quitting.fire(environment=master_env, reverse=True)
master.quit()
sleep(0.1)
# make sure users are killed
self.assertEqual(0, worker.user_count)
Expand Down

0 comments on commit 0ddb00e

Please sign in to comment.