From f36042dc5ceafb683ae0dc263eba168a3a0bc8f1 Mon Sep 17 00:00:00 2001 From: carlory Date: Fri, 1 Nov 2024 11:36:56 +0800 Subject: [PATCH] gomega forces `Eventually` to apply a default timeout even when a context is provided. --- test/e2e/framework/test_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/framework/test_context.go b/test/e2e/framework/test_context.go index 51a21e7d23e..abe4bfda133 100644 --- a/test/e2e/framework/test_context.go +++ b/test/e2e/framework/test_context.go @@ -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")