Skip to content

Commit

Permalink
Attempt #2 to fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mboutet committed Nov 24, 2020
1 parent 24b887b commit 80bb18d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/test/test_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ def tick(self):

# First stage
self.assertEqual("spawning", master.state)
sleep(5.5) # runtime = 5.5s
sleep(6) # runtime = 6s
self.assertEqual("running", master.state)
w1 = {"TestUser1": 1, "TestUser2": 1, "TestUser3": 1}
w2 = {"TestUser1": 0, "TestUser2": 1, "TestUser3": 1}
Expand All @@ -664,7 +664,7 @@ def tick(self):
self.assertDictEqual(w3, master.clients[workers[2].client_id].user_class_occurrences)
self.assertDictEqual(w4, master.clients[workers[3].client_id].user_class_occurrences)
self.assertDictEqual(w5, master.clients[workers[4].client_id].user_class_occurrences)
sleep(4.5) # runtime = 10s
sleep(4) # runtime = 10s

# Second stage
self.assertEqual("spawning", master.state)
Expand Down

0 comments on commit 80bb18d

Please sign in to comment.