mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
enhance boolean assertions
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user