mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
omit comparison to bool constant
This commit is contained in:
parent
1d7829a964
commit
c2cb482181
@ -615,7 +615,7 @@ done
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
// verify the pod ready status has reported not ready
|
// verify the pod ready status has reported not ready
|
||||||
return podutil.IsPodReady(pod) == false, nil
|
return !podutil.IsPodReady(pod), nil
|
||||||
})
|
})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
})
|
})
|
||||||
@ -698,7 +698,7 @@ done
|
|||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
// verify the pod ready status has reported not ready
|
// verify the pod ready status has reported not ready
|
||||||
return podutil.IsPodReady(pod) == false, nil
|
return !podutil.IsPodReady(pod), nil
|
||||||
})
|
})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ package node
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo/v2"
|
"github.com/onsi/ginkgo/v2"
|
||||||
|
|
||||||
v1 "k8s.io/api/core/v1"
|
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")
|
e2eskipper.Skipf("Could not find and ready and schedulable Linux nodes")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user