Skip to content

Commit

Permalink
Implement retry mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
fletelli42 committed Sep 19, 2024
1 parent 3c531d6 commit d8dae15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def test_webserver_multiple_locustfiles_in_directory(self):
self.fail("Timeout waiting for web interface to start.")

try:
response = retry_request(f"http://localhost:{port}/", timeout=10)
response = retry_request(f"http://localhost:{port}/")
self.assertEqual(
200, response.status_code, msg=f"Expected status code 200, got {response.status_code}"
)
Expand Down Expand Up @@ -663,7 +663,7 @@ def my_task(self):
self.fail("Timeout waiting for web interface to start.")

try:
response = retry_request(f"http://localhost:{port}/", timeout=10)
response = retry_request(f"http://localhost:{port}/")
self.assertEqual(
200, response.status_code, msg=f"Expected status code 200, got {response.status_code}"
)
Expand Down

0 comments on commit d8dae15

Please sign in to comment.