Closed ztou closed 5 years ago
add a simple fix for your reference - https://github.com/locustio/locust/pull/990
you haven't consider the situation where zero locust is spawn, so there's one test failure test_spawn_zero_locusts.
I believe this was fixed by #1113
Description of issue
when there are 3 locust clients, but run with only 1 concurrent Locust users, locust exit without error or warning.
https://github.com/locustio/locust/blob/8b17c286034178ba31c6d48b93f29202514f5659/locust/runners.py#L83
num_locusts
could be 0Expected behavior
num_locusts should be at least 1
Actual behavior
num_locusts is 0
Steps to reproduce (for bug reports)
when there are 3 locust clients, but run with only 1 concurrent Locust users like below, locust exit without error or warning.
l.py as below: