enhance boolean assertions

This commit is contained in:
Sujay
2024-07-31 15:58:15 +00:00
parent 7c780186d7
commit 223aedcf6b
35 changed files with 135 additions and 161 deletions

View File

@@ -363,7 +363,7 @@ func runDensityBatchTest(ctx context.Context, f *framework.Framework, rc *Resour
gomega.Eventually(ctx, func() bool {
return len(watchTimes) == testArg.podsNr
}, 10*time.Minute, 10*time.Second).Should(gomega.BeTrue())
}, 10*time.Minute, 10*time.Second).Should(gomega.BeTrueBecause("All pods should be observed by the watch."))
if len(watchTimes) < testArg.podsNr {
framework.Failf("Timeout reached waiting for all Pods to be observed by the watch.")