Skip to content

Commit 7c7d9ef

Browse files
committed
fixup: fix flaky crd tests
Signed-off-by: Janelle Law <[email protected]>
1 parent 8b7ccf8 commit 7c7d9ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/case38_install_operator_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ var _ = Describe("Testing OperatorPolicy", Label("supports-hosted"), func() {
19091909
parentPolicyName = getParentPolicyName()
19101910

19111911
preFunc()
1912-
KubectlTarget("delete", "crd", crdName, "--ignore-not-found")
1912+
KubectlTarget("delete", "crd", crdName, "--wait", "--ignore-not-found")
19131913
setupPolicy(opPolYAML, opPolName, parentPolicyName)
19141914
})
19151915
It("Should initially not report on CRDs because they won't exist yet", func() {
@@ -2031,7 +2031,7 @@ var _ = Describe("Testing OperatorPolicy", Label("supports-hosted"), func() {
20312031
parentPolicyName = getParentPolicyName()
20322032

20332033
preFunc()
2034-
KubectlTarget("delete", "crd", crdName, "--ignore-not-found")
2034+
KubectlTarget("delete", "crd", crdName, "--wait", "--ignore-not-found")
20352035
setupPolicy(opPolYAML, opPolName, parentPolicyName)
20362036
})
20372037

@@ -2937,7 +2937,7 @@ var _ = Describe("Testing OperatorPolicy", Label("supports-hosted"), func() {
29372937
parentPolicyName = getParentPolicyName()
29382938

29392939
preFunc()
2940-
KubectlTarget("delete", "crd", crdName, "--ignore-not-found")
2940+
KubectlTarget("delete", "crd", crdName, "--wait", "--ignore-not-found")
29412941
setupPolicy(opPolYAML, opPolName, parentPolicyName)
29422942
})
29432943
AfterAll(func(ctx SpecContext) {
@@ -3076,7 +3076,7 @@ var _ = Describe("Testing OperatorPolicy", Label("supports-hosted"), func() {
30763076
parentPolicyName = getParentPolicyName()
30773077

30783078
preFunc()
3079-
KubectlTarget("delete", "crd", crdName, "--ignore-not-found")
3079+
KubectlTarget("delete", "crd", crdName, "--wait", "--ignore-not-found")
30803080
setupPolicy(opPolYAML, opPolName, parentPolicyName)
30813081
})
30823082

0 commit comments

Comments
 (0)