omit comparison to bool constant

This commit is contained in:
wongearl 2022-07-09 17:15:27 +08:00
parent 1d7829a964
commit c2cb482181
2 changed files with 4 additions and 3 deletions

View File

@ -615,7 +615,7 @@ done
return false, err
}
// verify the pod ready status has reported not ready
return podutil.IsPodReady(pod) == false, nil
return !podutil.IsPodReady(pod), nil
})
framework.ExpectNoError(err)
})
@ -698,7 +698,7 @@ done
return false, err
}
// verify the pod ready status has reported not ready
return podutil.IsPodReady(pod) == false, nil
return !podutil.IsPodReady(pod), nil
})
framework.ExpectNoError(err)

View File

@ -18,6 +18,7 @@ package node
import (
"context"
"github.com/onsi/ginkgo/v2"
v1 "k8s.io/api/core/v1"
@ -83,7 +84,7 @@ func findLinuxNode(f *framework.Framework) (v1.Node, error) {
}
}
if foundNode == false {
if !foundNode {
e2eskipper.Skipf("Could not find and ready and schedulable Linux nodes")
}