Skip to content

Commit b300369

Browse files
authored
Merge branch 'k8snetworkplumbingwg:master' into network-operator-25.1.x
2 parents 900aabc + 270d88b commit b300369

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/conformance/tests/test_sriov_operator.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,14 @@ var _ = Describe("[sriov] operator", func() {
501501
Expect(err).ToNot(HaveOccurred())
502502

503503
Eventually(func() bool {
504-
stdout, stderr, err := pod.ExecCommand(clients, hostNetPod, "ip", "link", "show")
505-
Expect(err).ToNot(HaveOccurred())
506-
Expect(stderr).To(Equal(""))
504+
var stdout, stderr string
505+
// Adding a retry because some of the time we get `Dump was interrupted and may be inconsistent.`
506+
// output from the ip link command
507+
Eventually(func(g Gomega) {
508+
stdout, stderr, err = pod.ExecCommand(clients, hostNetPod, "ip", "link", "show")
509+
g.Expect(err).ToNot(HaveOccurred())
510+
g.Expect(stderr).To(Equal(""))
511+
}, time.Minute, 2*time.Second).Should(Succeed())
507512

508513
found := false
509514
for _, line := range strings.Split(stdout, "\n") {

0 commit comments

Comments
 (0)