From dabc1b82623d6981f0b440a0df33393fb91415bb Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Fri, 18 Oct 2019 16:18:00 +0200 Subject: [PATCH] Improved test (catches bug reported in #1105) --- locust/test/test_fasthttp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/locust/test/test_fasthttp.py b/locust/test/test_fasthttp.py index d90666ff22..dcef48ceaa 100644 --- a/locust/test/test_fasthttp.py +++ b/locust/test/test_fasthttp.py @@ -314,6 +314,7 @@ def test_catch_response(self): with self.locust.client.get("/ultra_fast", catch_response=True) as response: pass self.assertEqual(1, self.num_failures) self.assertEqual(1, self.num_success) + self.assertIn("ultra fast", str(response.content)) with self.locust.client.get("/ultra_fast", catch_response=True) as response: raise ResponseError("Not working")