@@ -1720,12 +1720,15 @@ var _ = Describe("[sriov] operator", Ordered, func() {
17201720
17211721 WaitForSRIOVStable ()
17221722 By ("Checking files on the host" )
1723- output , errOutput , err := runCommandOnConfigDaemon (testNode , "/bin/bash" , "-c" , "ls /host/etc/sriov-operator/pci/ | wc -l" )
1724- Expect (err ).ToNot (HaveOccurred (), errOutput )
1725- Expect (strings .HasPrefix (output , "0" )).Should (BeTrue ())
1726- output , errOutput , err = runCommandOnConfigDaemon (testNode , "/bin/bash" , "-c" , "ls /host/etc/udev/rules.d/ | grep 10-nm-disable | wc -l" )
1727- Expect (err ).ToNot (HaveOccurred (), errOutput )
1728- Expect (strings .HasPrefix (output , "0" )).Should (BeTrue ())
1723+ Eventually (func (g Gomega ) {
1724+ output , errOutput , err := runCommandOnConfigDaemon (testNode , "/bin/bash" , "-c" , "ls /host/etc/sriov-operator/pci/ | wc -l" )
1725+ g .Expect (err ).ToNot (HaveOccurred (), errOutput )
1726+ g .Expect (strings .HasPrefix (output , "0" )).Should (BeTrue ())
1727+
1728+ output , errOutput , err = runCommandOnConfigDaemon (testNode , "/bin/bash" , "-c" , "ls /host/etc/udev/rules.d/ | grep 10-nm-disable | wc -l" )
1729+ g .Expect (err ).ToNot (HaveOccurred (), errOutput )
1730+ g .Expect (strings .HasPrefix (output , "0" )).Should (BeTrue ())
1731+ }, 3 * time .Minute , 1 * time .Second ).Should (Succeed ())
17291732 })
17301733 })
17311734 })
0 commit comments