mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +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.By("Wait for node to be ready")
|
||||
gomega.Eventually(ctx, func(ctx context.Context) error {
|
||||
_, err := e2enode.TotalReady(ctx, f.ClientSet)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}, time.Minute, time.Second).Should(gomega.Equal(1), "one node should be ready")
|
||||
gomega.Eventually(ctx, e2enode.TotalReady).
|
||||
WithArguments(f.ClientSet).
|
||||
WithTimeout(time.Minute).
|
||||
Should(gomega.BeEquivalentTo(1))
|
||||
|
||||
// Before we run the device plugin test, we need to ensure
|
||||
// that the cluster is in a clean state and there are no
|
||||
|
Loading…
Reference in New Issue
Block a user