Skip to content

Commit 36ca5eb

Browse files
committed
refcator
Signed-off-by: Coleen Iona Quadros <[email protected]>
1 parent 735e3bd commit 36ca5eb

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tests/pkg/tests/observability_addon_test.go

+4-10
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ var _ = Describe("", func() {
3434
}
3535
})
3636

37-
JustBeforeEach(func() {
38-
Eventually(func() error {
39-
clusters, clusterError := utils.ListManagedClusters(testOptions)
40-
if clusterError != nil {
41-
return clusterError
42-
}
43-
return nil
44-
}, EventuallyTimeoutMinute*6, EventuallyIntervalSecond*5).Should(Succeed())
45-
})
46-
4737
Context("RHACM4K-1260: Observability: Verify monitoring operator and deployment status when metrics collection disabled [P2][Sev2][Observability]@ocpInterop @non-ui-post-restore @non-ui-post-release @non-ui-pre-upgrade @non-ui-post-upgrade @post-upgrade @post-restore @e2e @pre-upgrade (addon/g0) -", func() {
4838
It("[Stable] Should have resource requirement defined in CR", func() {
4939
By("Check addon resource requirement")
@@ -87,6 +77,10 @@ var _ = Describe("", func() {
8777
// timestamp(node_memory_MemAvailable_bytes{cluster="local-cluster"} offset 1m) > 59
8878
It("[Stable] Waiting for check no metric data in grafana console", func() {
8979
Eventually(func() error {
80+
clusters, clusterError := utils.ListManagedClusters(testOptions)
81+
if clusterError != nil {
82+
return clusterError
83+
}
9084
for _, cluster := range clusters {
9185
res, err := utils.QueryGrafana(
9286
testOptions,

0 commit comments

Comments
 (0)