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

tests: use #[tokio::test(start_paused=true)] to avoid flakiness in the future #62

Open
problame opened this issue Oct 29, 2024 · 0 comments

Comments

@problame
Copy link
Collaborator

/// NB: In this test, we use the pattern of `select! { ..., sleep(2 seconds) }` to drive op futures
/// to the point where they are enqueued and occupy a slot. This will become flaky if that takes
/// more than 2 seconds. A more deterministic way to do it would be to use
/// #[tokio::test(start_paused=true)].

/// NB: In this test, we use the pattern of `select! { ..., sleep(2 seconds) }` to drive op futures
/// to the point where they are enqueued and occupy a slot. This will become flaky if that takes
/// more than 2 seconds. A more deterministic way to do it would be to use
/// #[tokio::test(start_paused=true)].

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

No branches or pull requests

1 participant