From b0f57118a1892fa591ec09a44a2a6efaef4d3800 Mon Sep 17 00:00:00 2001 From: Manik Rana Date: Fri, 20 Sep 2024 19:18:56 +0530 Subject: [PATCH] chore: stricter comparison Co-authored-by: Arthur Silva Sens Signed-off-by: Manik Rana --- model/textparse/promparse_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/textparse/promparse_test.go b/model/textparse/promparse_test.go index 16a99bd7042..608538ad780 100644 --- a/model/textparse/promparse_test.go +++ b/model/textparse/promparse_test.go @@ -504,7 +504,7 @@ func BenchmarkParse(b *testing.B) { } { for _, fn := range []string{"promtestdata.txt", "promtestdata.nometa.txt", "omtestdata.txt"} { // we only want to benchmark om parsers with omtestdata - if fn == "omtestdata.txt" && parserName == "prometheus" { + if fn == "omtestdata.txt" && !strings.HasPrefix(fn, "openmetrics") { continue }