Skip to content

Commit 3c68c76

Browse files
committed
test: fix flaky reconcile counter
This test sometimes flakes by counting 2 extra reconciles from the previous spec. Wait to resolve these reconciles before continuing ref: https://issues.redhat.com/browse/ACM-26529 Signed-off-by: Janelle Law <[email protected]>
1 parent ce96f9b commit 3c68c76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/e2e/case38_install_operator_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3451,6 +3451,11 @@ var _ = Describe("Testing OperatorPolicy", Label("supports-hosted"), func() {
34513451
setupPolicy(mustnothaveYAML, mustnothaveName, parentPolicyName)
34523452
})
34533453

3454+
BeforeEach(func() {
3455+
By("Waiting briefly to stabilize reconciles")
3456+
time.Sleep(2 * time.Second)
3457+
})
3458+
34543459
It("Should not display a validation error when both are in inform mode", func() {
34553460
check(
34563461
mustnothaveName,

0 commit comments

Comments
 (0)