Skip to content

Commit

Permalink
Update test cases for request event url argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Nov 5, 2021
1 parent 17acf45 commit 01efaec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locust/test/test_fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def on_request(**kw):
# self.assertIn("for url: replaced_url_name", str(kwargs["exception"])) # this is actually broken for FastHttpUser right now...
self.assertAlmostEqual(before_request, kwargs["start_time"], delta=0.01)
self.assertAlmostEqual(after_request, kwargs["start_time"] + kwargs["response_time"] / 1000, delta=0.01)
self.assertEqual("/wrong_url/01", kwargs["url"]) # url is unaffected by name
self.assertEqual(s.base_url + "/wrong_url/01", kwargs["url"]) # url is unaffected by name
self.assertDictEqual({"foo": "bar"}, kwargs["context"])


Expand Down
2 changes: 1 addition & 1 deletion locust/test/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def on_request(**kw):
self.assertIn("for url: replaced_url_name", str(kwargs["exception"]))
self.assertAlmostEqual(before_request, kwargs["start_time"], delta=0.01)
self.assertAlmostEqual(after_request, kwargs["start_time"] + kwargs["response_time"] / 1000, delta=0.01)
self.assertEqual("/wrong_url/01", kwargs["url"]) # url is unaffected by name
self.assertEqual(s.base_url + "/wrong_url/01", kwargs["url"]) # url is unaffected by name
self.assertDictEqual({"foo": "bar"}, kwargs["context"])

def test_get_with_params(self):
Expand Down

0 comments on commit 01efaec

Please sign in to comment.