Skip to content

Commit

Permalink
Update factory_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
  • Loading branch information
mmorel-35 committed Nov 4, 2024
1 parent 6889de7 commit b21b8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/metrics/prometheus/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func findMetric(t *testing.T, snapshot []*promModel.MetricFamily, name string, t
continue
}
for _, m := range mf.GetMetric() {
require.Equalf(t, len(m.GetLabel()), len(tags), "Mismatching labels for metric %v: want %v, have %v", name, tags, m.GetLabel())
require.Lenf(t, m.GetLabel(), len(tags), "Mismatching labels for metric %v: want %v, have %v", name, tags, m.GetLabel())
match := true
for _, l := range m.GetLabel() {
if v, ok := tags[l.GetName()]; !ok || v != l.GetValue() {
Expand Down

0 comments on commit b21b8c1

Please sign in to comment.