Skip to content

Commit

Permalink
Improved test (catches bug reported in #1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Oct 18, 2019
1 parent 6d66eaf commit dabc1b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locust/test/test_fasthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit dabc1b8

Please sign in to comment.