Skip to content
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

Fix flaky SetTimeoutTest #1080

Closed
wants to merge 3 commits into from
Closed

Fix flaky SetTimeoutTest #1080

wants to merge 3 commits into from

Conversation

gnawf
Copy link
Contributor

@gnawf gnawf commented Jul 18, 2023

Attempts to fix #1073

Bit of a weird conundrum though, does eventually work correctly? Debugging it tells me so, but do I test the test code?

Any reason why this project don't use Kotest or so?

Copy link
Member

@colinrtwhite colinrtwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JakeWharton Looks like this works around the flaky test issue. Should we merge + add a TODO to figure out the root cause?

@JakeWharton
Copy link
Collaborator

I'll look today. I wanted to give a shot at fixing the test first, presumably by moving to runTest so the virtual clock and dispatcher are shared.

@JakeWharton
Copy link
Collaborator

Any reason why this project don't use Kotest or so?

We generally think this library is not well designed and causes more problems than it solves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SetTimeoutTest is flaky
3 participants