-
-
Notifications
You must be signed in to change notification settings - Fork 164
Test execution hangs if guards are used in multiple tests #322
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
Comments
I think I have tracked down the issue to these lines: sentry-rust/sentry-core/src/hub.rs Lines 158 to 164 in f86a4db
I guess it's the handeling of the global statics ( Here is another example of reproducing the bug: fn main() {
let _guard = sentry::init(sentry::ClientOptions {
..Default::default()
});
std::thread::spawn(|| {
let _guard = sentry::init(sentry::ClientOptions {
..Default::default()
});
}).join();
} |
I think I have tracked this down to the |
Oh, I see you were also on Windows, and interestingly enough I was also tracking this down on Windows. This seems to have been a manifestation of rust-lang/rust#74875 I guess since that matches the conclusion I came to in #326 |
@Swatinem Amazing work, thank you! |
Environment
How do you use Sentry?
sentry.io
Which SDK and version?
sentry-rust (0.22.0)
Toolchain:
stable-x86_64-pc-windows-msvc (default)
rustc 1.50.0 (cb75ad5db 2021-02-10)
Steps to Reproduce
cargo test
Running the tests individually works fine
Expected Result
The test execution should finish with exit 0.
Actual Result
We didn't experience any issues with this in
0.19.0
The text was updated successfully, but these errors were encountered: