Skip to content

Commit 704d7ec

Browse files
committed
functest: add retry for rdma functest
this is needed because after a reboot on a single node the operator webhook may not be ready Signed-off-by: Sebastian Sch <[email protected]>
1 parent d172b52 commit 704d7ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/conformance/tests/test_networkpool.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ var _ = Describe("[sriov] NetworkPool", Ordered, func() {
110110
Expect(strings.HasPrefix(output, "1")).To(BeTrue())
111111

112112
By("removing rdma mode configuration")
113-
err = clients.Delete(context.Background(), networkPool)
114-
Expect(err).ToNot(HaveOccurred())
113+
Eventually(func(g Gomega) {
114+
err = clients.Delete(context.Background(), networkPool)
115+
g.Expect(err).ToNot(HaveOccurred())
116+
}, 5*time.Minute, 5*time.Second).Should(Succeed())
117+
115118
WaitForSRIOVStable()
116119

117120
err = clients.Get(context.Background(), client.ObjectKey{Name: testNode, Namespace: operatorNamespace}, nodeState)

0 commit comments

Comments
 (0)