Tests: Fix flaky io error
Not assigning vmi from Create call causes
that the vmi is missing namespace.
Namespace is required for helper in our test suite
causing 100% failure.
@@ -228,7 +228,7 @@ var _ = SIGDescribe("Storage", func() {
libvmi.WithNetwork(v1.DefaultPodNetwork()),
libvmi.WithInterface(libvmi.InterfaceDeviceWithMasqueradeBinding()))
- _, err := virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(vmi)
+ vmi, err := virtClient.VirtualMachineInstance(util.NamespaceTestDefault).Create(vmi)
Expect(err).To(BeNil(), failedCreateVMI)
tests.WaitForSuccessfulVMIStartWithTimeoutIgnoreWarnings(vmi, 180)
