From 3a663791d2fb9a4177b4a84fed87b4d1f28950bf Mon Sep 17 00:00:00 2001 From: Onsi Fakhouri Date: Thu, 25 Apr 2024 08:35:25 -0600 Subject: [PATCH] fix confusing eventually docs --- gomega_dsl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gomega_dsl.go b/gomega_dsl.go index 1980a63c..53a7066a 100644 --- a/gomega_dsl.go +++ b/gomega_dsl.go @@ -372,11 +372,11 @@ You can ensure that you get a number of consecutive successful tries before succ Finally, in addition to passing timeouts and a context to Eventually you can be more explicit with Eventually's chaining configuration methods: - Eventually(..., "1s", "2s", ctx).Should(...) + Eventually(..., "10s", "2s", ctx).Should(...) is equivalent to - Eventually(...).WithTimeout(time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...) + Eventually(...).WithTimeout(10*time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...) */ func Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion { ensureDefaultGomegaIsConfigured()