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:
Sascha Grunert 2024-08-26 11:32:13 +02:00
parent 9fe06620f3
commit ff50da579e
No known key found for this signature in database
GPG Key ID: 09D97D153EF94D93

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