Description
Documentation of EventuallyWithT and EventuallyWithTf functions (in both require or assert package) is misleading, as the sample code swaps waitFor and tick args in the call.
Step To Reproduce
Go to assert.EventuallyWithT docs and look at the example, it shows 1*time.Second, that is supposed to be the tick as 1st argument that should be waitFor.
Same thing for assert.EventuallyWithTf, require.EventuallyWithT and require.EventuallyWithTf.
Description
Documentation of
EventuallyWithTandEventuallyWithTffunctions (in both require or assert package) is misleading, as the sample code swapswaitForandtickargs in the call.Step To Reproduce
Go to assert.EventuallyWithT docs and look at the example, it shows
1*time.Second, that is supposed to be thetickas 1st argument that should bewaitFor.Same thing for assert.EventuallyWithTf, require.EventuallyWithT and require.EventuallyWithTf.