Skip to content

Commit 56683d9

Browse files
authored
Wait for catalog deletion before recreation (#537)
Signed-off-by: Mikalai Radchuk <[email protected]>
1 parent 218f0d4 commit 56683d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/install_test.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,12 @@ var _ = Describe("Operator Install", func() {
154154
PackageName: pkgName,
155155
}
156156

157-
// Delete the catalog first
157+
By("deleting the catalog first")
158158
Expect(c.Delete(ctx, operatorCatalog)).To(Succeed())
159+
Eventually(func(g Gomega) {
160+
err := c.Get(ctx, types.NamespacedName{Name: operatorCatalog.Name}, &catalogd.Catalog{})
161+
g.Expect(errors.IsNotFound(err)).To(BeTrue())
162+
}).Should(Succeed())
159163

160164
By("creating the Operator resource")
161165
Expect(c.Create(ctx, operator)).To(Succeed())

0 commit comments

Comments
 (0)