Skip to content

Commit

Permalink
fix e2e CSV metric is preserved failure (#2530)
Browse files Browse the repository at this point in the history
Signed-off-by: akihikokuroda <akihikokuroda2020@gmail.com>
  • Loading branch information
akihikokuroda committed Dec 20, 2021
1 parent b414e6e commit 33b081a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/e2e/metrics_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,13 @@ var _ = Describe("Metrics are generated for OLM managed resources", func() {
restartDeploymentWithLabel(c, "app=olm-operator")
})
It("CSV metric is preserved", func() {
Expect(getMetricsFromPod(c, getPodWithLabel(c, "app=olm-operator"))).To(
ContainElement(LikeMetric(WithFamily("csv_succeeded"), WithName(csv.Name), WithValue(1))),
)
Eventually(func() []Metric {
return getMetricsFromPod(c, getPodWithLabel(c, "app=olm-operator"))
}).Should(ContainElement(LikeMetric(
WithFamily("csv_succeeded"),
WithName(csv.Name),
WithValue(1),
)))
})
})
})
Expand Down

0 comments on commit 33b081a

Please sign in to comment.