Skip to content

Commit 3a66379

Browse files
committedApr 25, 2024·
fix confusing eventually docs
1 parent f2e65fc commit 3a66379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎gomega_dsl.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,11 @@ You can ensure that you get a number of consecutive successful tries before succ
372372
373373
Finally, in addition to passing timeouts and a context to Eventually you can be more explicit with Eventually's chaining configuration methods:
374374
375-
Eventually(..., "1s", "2s", ctx).Should(...)
375+
Eventually(..., "10s", "2s", ctx).Should(...)
376376
377377
is equivalent to
378378
379-
Eventually(...).WithTimeout(time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...)
379+
Eventually(...).WithTimeout(10*time.Second).WithPolling(2*time.Second).WithContext(ctx).Should(...)
380380
*/
381381
func Eventually(actualOrCtx interface{}, args ...interface{}) AsyncAssertion {
382382
ensureDefaultGomegaIsConfigured()

0 commit comments

Comments
 (0)
Please sign in to comment.