From 5bd1bc29c6f4aea38d54113b953fe9332f64cc8b Mon Sep 17 00:00:00 2001 From: Ladislav Kolacek Date: Mon, 30 Oct 2023 11:13:36 +0100 Subject: [PATCH] Fix flaky test for request metrics 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 --- tests/integration/test_request_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_request_metrics.py b/tests/integration/test_request_metrics.py index ea2a349ff..4b15ff40d 100644 --- a/tests/integration/test_request_metrics.py +++ b/tests/integration/test_request_metrics.py @@ -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