gomega forces Eventually to apply a default timeout even when a context is provided.

This commit is contained in:
carlory 2024-11-01 11:36:56 +08:00
parent 80b1a29786
commit f36042dc5c

View File

@ -510,6 +510,7 @@ func AfterReadingAllFlags(t *TestContextType) {
gomega.SetDefaultConsistentlyPollingInterval(t.timeouts.Poll)
gomega.SetDefaultEventuallyTimeout(t.timeouts.PodStart)
gomega.SetDefaultConsistentlyDuration(t.timeouts.PodStartShort)
gomega.EnforceDefaultTimeoutsWhenUsingContexts()
// ginkgo.PreviewSpecs will expand all nodes and thus may find new bugs.
report := ginkgo.PreviewSpecs("Kubernetes e2e test statistics")