Skip to content

assert.Eventually: fail the testcase if condition is not met #838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dmacvicar
Copy link
Contributor

Fixes #837

See #837 (comment) for an explanation.

Given that the original tests did not catch the problem, I am not sure how to enhance the tests to do it. But feedback is appreciated.

I am also not completely sure if I am missing something regarding the motivation for f1bd092 change from Failto false, or if it was just an oversight.

@boyan-soubachov
Copy link
Collaborator

@dmacvicar , please rebase onto master to make the tests pass on tip. This change makes the #805 unit test pass so I see no reason not to merge it. Would be happy to approve and merge once you rebase.

@torkelrogstad
Copy link
Contributor

This was superseded by #869 and should be closed

@boyan-soubachov boyan-soubachov removed this from the v1.6.0 milestone May 29, 2020
@dolmen dolmen added pkg-assert Change related to package testify/assert assert.Eventually About assert.Eventually/EventuallyWithT labels Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert.Eventually About assert.Eventually/EventuallyWithT bug pkg-assert Change related to package testify/assert
Projects
None yet
Development

Successfully merging this pull request may close these issues.

assert.Eventually() does not fail test when the timer expires
5 participants