Repository navigation
test: Fix flaky test - #1240
Merged
Merged
test: Fix flaky test#1240
Conversation
Split the `await_cross_thread_guard` tests into separate files. This should hopefully fix the flakiness in #1112 by isolating the tests. Fixes [#1112](#1112) Fixes [RUST-210](https://linear.app/getsentry/issue/RUST-210/flaky-test-future-cross-thread-info-span)
szokeasaurusrex
marked this pull request as draft
July 13, 2026 12:51
szokeasaurusrex
marked this pull request as ready for review
July 13, 2026 13:06
lcian
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split the
await_cross_thread_guardtests into separate files. This should hopefully fix the flakiness in #1112 by isolating the tests.Unfortunately, we also need to split the common helper functions into separate files to prevent dead code warnings. Cargo includes the helper modules separately in each test file, so even if a function is used in another test, if at least one test imports the module but does not use all of it, we get a warning. So, the helpers are split into separate files so that they can be imported only where needed.
Fixes #1112
Fixes RUST-210