Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mboutet committed Nov 16, 2020
1 parent 676f892 commit 897651a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,12 @@ def test_spawn_message_with_older_timestamp_is_rejected(self):
class MyUser(User):
wait_time = constant(1)

def start(self, group: Group):
# We do this so that the spawning does not finish
# too quickly
gevent.sleep(0.1)
return super().start(group)

@task
def my_task(self):
pass
Expand Down

0 comments on commit 897651a

Please sign in to comment.