Skip to content

Commit 9bada79

Browse files
committed
DRA node test: fix useless gomega.Consistently
Passing a constant value to gomega.Consistently means that it will not re-check while running. Found by linter after removing the suppression rule for the check. It was disabled earlier because of a bug in the linter.
1 parent 4adb585 commit 9bada79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e_node/dra_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ var _ = framework.SIGDescribe("node")("DRA", feature.DynamicResourceAllocation,
345345

346346
calls := kubeletPlugin.CountCalls("/NodePrepareResources")
347347
ginkgo.By("make sure NodePrepareResources is not called again")
348-
gomega.Consistently(kubeletPlugin.CountCalls("/NodePrepareResources")).WithTimeout(retryTestTimeout).Should(gomega.Equal(calls))
348+
gomega.Consistently(func() int {
349+
return kubeletPlugin.CountCalls("/NodePrepareResources")
350+
}).WithTimeout(retryTestTimeout).Should(gomega.Equal(calls))
349351
})
350352
})
351353

0 commit comments

Comments
 (0)