Skip to content

Commit 33b081a

Browse files
fix e2e CSV metric is preserved failure (#2530)
Signed-off-by: akihikokuroda <[email protected]>
1 parent b414e6e commit 33b081a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/e2e/metrics_e2e_test.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,13 @@ var _ = Describe("Metrics are generated for OLM managed resources", func() {
149149
restartDeploymentWithLabel(c, "app=olm-operator")
150150
})
151151
It("CSV metric is preserved", func() {
152-
Expect(getMetricsFromPod(c, getPodWithLabel(c, "app=olm-operator"))).To(
153-
ContainElement(LikeMetric(WithFamily("csv_succeeded"), WithName(csv.Name), WithValue(1))),
154-
)
152+
Eventually(func() []Metric {
153+
return getMetricsFromPod(c, getPodWithLabel(c, "app=olm-operator"))
154+
}).Should(ContainElement(LikeMetric(
155+
WithFamily("csv_succeeded"),
156+
WithName(csv.Name),
157+
WithValue(1),
158+
)))
155159
})
156160
})
157161
})

0 commit comments

Comments
 (0)