Commit 435d2e7
fix(test): Clean up global Sentry state in SentryPropagatorTest
SentryPropagatorTest calls Sentry.init with strict trace continuation
but never closes Sentry afterward. This leaks global state into
SentrySpanProcessorTest where SentryPropagator uses the global
ScopesAdapter and rejects incoming sentry-trace headers under the
leaked strict mode configuration.
Add @AfterTest that calls Sentry.close() to prevent state leakage.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent cf7d9fe commit 435d2e7
File tree
1 file changed
+6
-0
lines changed- sentry-opentelemetry/sentry-opentelemetry-core/src/test/kotlin
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
0 commit comments