fix in another place where node name is hardcoded
@@ -1348,9 +1348,13 @@ var _ = Describe("Configurations", func() {
By("Starting a VirtualMachineInstance without dedicated cpus")
_, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(Vmi)
Expect(err).ToNot(HaveOccurred())
- node1 := tests.WaitForSuccessfulVMIStart(Vmi)
- // what should i do here it will always fail for us
- Expect(node1).To(ContainSubstring("node02"))
+ node = tests.WaitForSuccessfulVMIStart(Vmi)
+ for _, n := range nodesWithCPUManager.Items {
+ if strings.Contains(node, n.Name) {
+ Expect(node).To(ContainSubstring(n.Name))
+ break
+ }
+ }
})
})
})
