Skip to content

EventuallyWithTf function help is incorrect, misleading callback signature #1833

Open

Description

@nomaed

Documentation shows that the callback function format is func(c *assert.CollectT, "error message %s", "formatted") which is incorrect.

Formatting arguments are only valid for EventuallyWithTf itself, while the callback is just func(c *assert.CollectT).

The issue appears for:

Activity

  1. added a commit that references this issue on Jan 8, 2026
    3010e8b
  2. a2not commented on Jan 8, 2026

    @a2not
    Contributor

    I've come across with this issue and found out I was trying to solve similar documentation generation issue #1843.

    Implemented fix in #1842.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    assert.EventuallyAbout assert.Eventually/EventuallyWithT

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions