Skip to content

Commit

Permalink
use To(BeFalse())
Browse files Browse the repository at this point in the history
  • Loading branch information
tareqalayan committed Mar 3, 2019
1 parent 33c66fd commit 962a654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/vmi_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ var _ = Describe("Configurations", func() {
Describe("[rfe_id:897][crit:medium][vendor:[email protected]][level:component]VirtualMachineInstance with CPU pinning", func() {
var nodes *kubev1.NodeList

isNodeHasCPUManagerLabel := func (nodeName string) (bool) {
isNodeHasCPUManagerLabel := func(nodeName string) bool {
Expect(nodeName).ToNot(BeEmpty())

nodeObject, err := virtClient.CoreV1().Nodes().Get(nodeName, metav1.GetOptions{})
Expand Down Expand Up @@ -1255,7 +1255,7 @@ var _ = Describe("Configurations", func() {
_, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(cpuVmi)
Expect(err).ToNot(HaveOccurred())
node := tests.WaitForSuccessfulVMIStart(cpuVmi)
Expect(isNodeHasCPUManagerLabel(node)).ToNot(BeTrue())
Expect(isNodeHasCPUManagerLabel(node)).To(BeFalse())

By("Expecting the VirtualMachineInstance console")
expecter, err := tests.LoggedInCirrosExpecter(cpuVmi)
Expand Down Expand Up @@ -1343,7 +1343,7 @@ var _ = Describe("Configurations", func() {
_, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(cpuVmi)
Expect(err).ToNot(HaveOccurred())
node := tests.WaitForSuccessfulVMIStart(cpuVmi)
Expect(isNodeHasCPUManagerLabel(node)).ToNot(BeTrue())
Expect(isNodeHasCPUManagerLabel(node)).To(BeFalse())

By("Starting a VirtualMachineInstance without dedicated cpus")
_, err = virtClient.VirtualMachineInstance(tests.NamespaceTestDefault).Create(Vmi)
Expand Down

0 comments on commit 962a654

Please sign in to comment.