Skip to content

Commit d19a774

Browse files
author
Per Goncalves da Silva
committed
Address reviewer comments
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 3e9abe4 commit d19a774

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/e2e/catalog_e2e_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ var _ = Describe("Starting CatalogSource e2e tests", Label("CatalogSource"), fun
11701170
}
11711171

11721172
for _, pod := range podList.Items {
1173-
// Skip terminating pods
1173+
// Ignore terminating pods
11741174
if pod.DeletionTimestamp != nil {
11751175
continue
11761176
}
@@ -1199,8 +1199,11 @@ var _ = Describe("Starting CatalogSource e2e tests", Label("CatalogSource"), fun
11991199
return false
12001200
}
12011201
By("await new catalog source and ensure old one was deleted")
1202-
_, err = awaitPodsWithInterval(GinkgoT(), c, source.GetNamespace(), selector.String(), 30*time.Second, 10*time.Minute, podCheckFunc)
1202+
// the required check for ensuring there's a non-terminating pod with the new image is covered in the podCheckFunc
1203+
registryPods, err = awaitPodsWithInterval(GinkgoT(), c, source.GetNamespace(), selector.String(), 30*time.Second, 10*time.Minute, podCheckFunc)
12031204
Expect(err).ShouldNot(HaveOccurred(), "error awaiting registry pod")
1205+
Expect(registryPods).ShouldNot(BeNil(), "nil registry pods")
1206+
Expect(registryPods.Items).ToNot(BeEmpty(), "no registry pods found")
12041207

12051208
By("update catalog source with annotation (to kick resync)")
12061209
Eventually(func() error {

0 commit comments

Comments
 (0)