Skip to content

Commit e6ff664

Browse files
committed
Deflake sharder webhook integration test
1 parent e7be460 commit e6ff664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/sharder/webhook/sharder/sharder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var _ = Describe("Shard Lease controller", func() {
6666
// clean up all leases from this test case
6767
Expect(testClient.DeleteAllOf(ctx, &coordinationv1.Lease{}, client.InNamespace(testRunID))).To(Succeed())
6868
// wait until the manager no longer sees leases from this test case
69-
Eventually(ctx, New(mgrClient).ObjectList(&coordinationv1.LeaseList{})).Should(HaveField("Items", BeEmpty()))
69+
Eventually(ctx, New(mgrClient).ObjectList(&coordinationv1.LeaseList{}, client.InNamespace(testRunID))).Should(HaveField("Items", BeEmpty()))
7070
}, NodeTimeout(time.Minute))
7171
}, NodeTimeout(time.Minute))
7272

0 commit comments

Comments
 (0)