From c0714a61e07a80bfc4b35dd70f69cc9b4b48b42e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Mon, 20 Jun 2022 12:03:39 +0200 Subject: [PATCH] Stop after finding metric indentified by tags in 'check_message_count_parse_failure' --- test/tap/tests/test_prometheus_metrics-t.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/tap/tests/test_prometheus_metrics-t.cpp b/test/tap/tests/test_prometheus_metrics-t.cpp index 51469069b..a895f80d2 100644 --- a/test/tap/tests/test_prometheus_metrics-t.cpp +++ b/test/tap/tests/test_prometheus_metrics-t.cpp @@ -377,6 +377,7 @@ void check_message_count_parse_failure(const map& prev_metrics, if (match_res.second) { metric_tags = match_res.first; after_metric_it = metric_key; + break; } } } @@ -386,6 +387,7 @@ void check_message_count_parse_failure(const map& prev_metrics, if (match_res.second) { prev_metric_it = metric_key; + break; } } }