Skip to content

Commit ff7c8f7

Browse files
committed
Fix RunsCollector tests
1 parent 51a5911 commit ff7c8f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

internal/controller/runscollector_controller_test.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,15 @@ var _ = Describe("RunsCollector Controller", Ordered, func() {
6161
Status: appv1alpha2.RunsCollectorStatus{},
6262
}
6363
// Register metrics
64-
metricRuns.WithLabelValues("pink_panther").Set(float64(162))
65-
metricRunsTotal.WithLabelValues().Set(float64(2134))
64+
metricRuns.WithLabelValues(
65+
"pink_panther",
66+
"apool-pp1963",
67+
"pink-shadow",
68+
).Set(float64(162))
69+
metricRunsTotal.WithLabelValues(
70+
"apool-pp1963",
71+
"pink-shadow",
72+
).Set(float64(2134))
6673
})
6774

6875
AfterEach(func() {

0 commit comments

Comments
 (0)