Skip to content

Commit

Permalink
Fix all-workers-missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
enote-kane committed Feb 22, 2021
1 parent 561edb6 commit a178964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def heartbeat_worker(self):
logger.info("Worker %s failed to send heartbeat, setting state to missing." % str(client.id))
client.state = STATE_MISSING
client.user_count = 0
if self.worker_count - len(self.clients.missing) <= 0:
if self.worker_count <= 0:
logger.info("The last worker went missing, stopping test.")
self.stop()
self.check_stopped()
Expand Down

0 comments on commit a178964

Please sign in to comment.