Skip to content

Commit

Permalink
Add short sleep to prevent exception
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Mar 16, 2020
1 parent a03e980 commit d45bac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setUp(self):
self.web_ui.app.view_functions["request_stats"].clear_cache()

gevent.spawn(lambda: self.web_ui.start("127.0.0.1", 0))
gevent.sleep(0)
gevent.sleep(0.01)
self.web_port = self.web_ui.server.server_port

def tearDown(self):
Expand Down

0 comments on commit d45bac9

Please sign in to comment.