Skip to content

Commit 90388ca

Browse files
committed
Merge remote-tracking branch 'upstream/master' into ds/sync20260111
2 parents a57c23c + a81bb34 commit 90388ca

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/validation/tests/test_validation.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"fmt"
66
"os"
7+
"time"
78

89
. "github.com/onsi/ginkgo/v2"
910
. "github.com/onsi/gomega"
@@ -115,17 +116,15 @@ var _ = Describe("validation", func() {
115116
})
116117

117118
It("should have SR-IOV node statuses not in progress", func() {
118-
CheckStable()
119+
Eventually(func(g Gomega) {
120+
res, err := cluster.SriovStable(operatorNamespace, clients)
121+
g.Expect(err).ToNot(HaveOccurred())
122+
g.Expect(res).To(BeTrue(), "SR-IOV status is not stable")
123+
124+
isClusterReady, err := cluster.IsClusterStable(clients)
125+
g.Expect(err).ToNot(HaveOccurred())
126+
g.Expect(isClusterReady).To(BeTrue(), "Cluster is not stable")
127+
}).WithTimeout(2 * time.Minute).WithPolling(10 * time.Second).Should(Succeed())
119128
})
120129
})
121130
})
122-
123-
func CheckStable() {
124-
res, err := cluster.SriovStable(operatorNamespace, clients)
125-
Expect(err).ToNot(HaveOccurred())
126-
Expect(res).To(BeTrue(), "SR-IOV status is not stable")
127-
128-
isClusterReady, err := cluster.IsClusterStable(clients)
129-
Expect(err).ToNot(HaveOccurred())
130-
Expect(isClusterReady).To(BeTrue(), "Cluster is not stable")
131-
}

0 commit comments

Comments
 (0)