mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Fix device plugin node ready test assertion
Introduced in d770dd695a
and high likely
the issue caused in the failing test:
https://github.com/kubernetes/kubernetes/issues/126915
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
parent
9fe06620f3
commit
ff50da579e
@ -803,13 +803,10 @@ func testDevicePluginNodeReboot(f *framework.Framework, pluginSockDir string) {
|
|||||||
|
|
||||||
ginkgo.BeforeEach(func(ctx context.Context) {
|
ginkgo.BeforeEach(func(ctx context.Context) {
|
||||||
ginkgo.By("Wait for node to be ready")
|
ginkgo.By("Wait for node to be ready")
|
||||||
gomega.Eventually(ctx, func(ctx context.Context) error {
|
gomega.Eventually(ctx, e2enode.TotalReady).
|
||||||
_, err := e2enode.TotalReady(ctx, f.ClientSet)
|
WithArguments(f.ClientSet).
|
||||||
if err != nil {
|
WithTimeout(time.Minute).
|
||||||
return err
|
Should(gomega.BeEquivalentTo(1))
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}, time.Minute, time.Second).Should(gomega.Equal(1), "one node should be ready")
|
|
||||||
|
|
||||||
// Before we run the device plugin test, we need to ensure
|
// Before we run the device plugin test, we need to ensure
|
||||||
// that the cluster is in a clean state and there are no
|
// that the cluster is in a clean state and there are no
|
||||||
|
Loading…
Reference in New Issue
Block a user