Skip to content

Eventually functions documentation is misleading as waitFor and tick are swapped in the example #1677

@delca85

Description

@delca85

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions