diff --git a/locust/test/test_fasthttp.py b/locust/test/test_fasthttp.py index f712bfc145..8115cce28c 100644 --- a/locust/test/test_fasthttp.py +++ b/locust/test/test_fasthttp.py @@ -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"]) diff --git a/locust/test/test_http.py b/locust/test/test_http.py index cef00e1377..4b94488575 100644 --- a/locust/test/test_http.py +++ b/locust/test/test_http.py @@ -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):