Skip to content

Commit

Permalink
functest: add retry for rdma functest
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
SchSeba committed Dec 16, 2024
1 parent d172b52 commit 704d7ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/conformance/tests/test_networkpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,11 @@ var _ = Describe("[sriov] NetworkPool", Ordered, func() {
Expect(strings.HasPrefix(output, "1")).To(BeTrue())

By("removing rdma mode configuration")
err = clients.Delete(context.Background(), networkPool)
Expect(err).ToNot(HaveOccurred())
Eventually(func(g Gomega) {
err = clients.Delete(context.Background(), networkPool)
g.Expect(err).ToNot(HaveOccurred())
}, 5*time.Minute, 5*time.Second).Should(Succeed())

WaitForSRIOVStable()

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

0 comments on commit 704d7ec

Please sign in to comment.