Skip to content

Commit

Permalink
Added load tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Aug 28, 2024
1 parent 1c4983b commit 2e1efae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/loadtests/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def _(environment, **kwargs):
elif environment.stats.total.avg_response_time > 200:
logging.error("Test failed due to average response time ratio > 200 ms")
environment.process_exit_code = 1
elif environment.stats.total.get_response_time_percentile(0.95) > 800:
logging.error("Test failed due to 95th percentile response time > 800 ms")
elif environment.stats.total.get_response_time_percentile(0.95) > 1500:
logging.error("Test failed due to 95th percentile response time > 1500 ms")
environment.process_exit_code = 1
else:
environment.process_exit_code = 0

0 comments on commit 2e1efae

Please sign in to comment.