Merge pull request #126916 from saschagrunert/device-plugin-test

Fix device plugin node ready test assertion
This commit is contained in:
Kubernetes Prow Robot 2024-08-26 20:51:11 +01:00 committed by GitHub
commit 95af4b0dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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