Skip to content

Commit

Permalink
Merge pull request #2123 from locustio/remove-timeout-parameter-from-…
Browse files Browse the repository at this point in the history
…FastHttpUser-unit-tests

Remove timeout parameter from FastHttpUser unit tests
  • Loading branch information
cyberw authored Jun 27, 2022
2 parents 357f106 + ae76c98 commit 9b7a4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/test/test_fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_get(self):

def test_connection_error(self):
s = FastHttpSession(self.environment, "http://localhost:1", user=None)
r = s.get("/", timeout=0.1, headers={"X-Test-Headers": "hello"})
r = s.get("/", headers={"X-Test-Headers": "hello"})
self.assertEqual(r.status_code, 0)
self.assertEqual(None, r.content)
self.assertEqual(1, len(self.runner.stats.errors))
Expand Down Expand Up @@ -321,7 +321,7 @@ class MyUser(FastHttpUser):
host = "http://localhost:1"

locust = MyUser(self.environment)
response = locust.client.get("/", timeout=0.1)
response = locust.client.get("/")
self.assertEqual(response.status_code, 0)
self.assertEqual(1, self.runner.stats.get("/", "GET").num_failures)
self.assertEqual(1, self.runner.stats.get("/", "GET").num_requests)
Expand Down

0 comments on commit 9b7a4cd

Please sign in to comment.