File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 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- }
You can’t perform that action at this time.
0 commit comments