Skip to content

Commit ff50da5

Browse files
committed
Fix device plugin node ready test assertion
Introduced in d770dd6 and high likely the issue caused in the failing test: kubernetes#126915 Signed-off-by: Sascha Grunert <[email protected]>
1 parent 9fe0662 commit ff50da5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/e2e_node/device_plugin_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -803,13 +803,10 @@ func testDevicePluginNodeReboot(f *framework.Framework, pluginSockDir string) {
803803

804804
ginkgo.BeforeEach(func(ctx context.Context) {
805805
ginkgo.By("Wait for node to be ready")
806-
gomega.Eventually(ctx, func(ctx context.Context) error {
807-
_, err := e2enode.TotalReady(ctx, f.ClientSet)
808-
if err != nil {
809-
return err
810-
}
811-
return nil
812-
}, time.Minute, time.Second).Should(gomega.Equal(1), "one node should be ready")
806+
gomega.Eventually(ctx, e2enode.TotalReady).
807+
WithArguments(f.ClientSet).
808+
WithTimeout(time.Minute).
809+
Should(gomega.BeEquivalentTo(1))
813810

814811
// Before we run the device plugin test, we need to ensure
815812
// that the cluster is in a clean state and there are no

0 commit comments

Comments
 (0)