Skip to content

Commit

Permalink
Fix flaky test for request metrics
Browse files Browse the repository at this point in the history
test_get_request_metrics_summary fails often with checking the number of
total processed requests.
I believe it is due to additional user request(s) finished in the time window we are
checking for our 3 test requests.

Signed-off-by: Ladislav Kolacek <[email protected]>
  • Loading branch information
lkolacek committed Nov 13, 2023
1 parent ccadeef commit 5bd1bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_request_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_get_request_metrics_summary(api_client):
"server_errors",
"total",
}.difference(summary)
assert summary["total"] == total
assert summary["total"] >= total
assert 0 < summary["duration_50"] <= summary["duration_95"]
assert summary["duration_avg"] > 0
assert summary["time_in_queue_avg"] > 0
Expand Down

0 comments on commit 5bd1bc2

Please sign in to comment.