Repository navigation
test: disable sessions in stacktrace capture tests - #2208
Merged
Merged
Conversation
On Switch, the platform integration supplies a release, enabling automatic session tracking. `sentry_close()` then sends a session envelope in addition to the event expected by the tests added in #2195. Their callback counts this envelope and replaces the saved `threads` with null, failing all three capture tests. Disable automatic session tracking in their shared setup, matching the neighboring capture tests. Introduced by: #2195 Failed CI job: https://github.com/getsentry/sentry-switch/actions/runs/38732357928/job/116426400577
JoshuaMoelans
approved these changes
Oct 15, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2208 +/- ##
==========================================
+ Coverage 75.55% 75.58% +0.03%
==========================================
Files 103 103
Lines 28242 28242
Branches 5174 5174
==========================================
+ Hits 21337 21348 +11
+ Misses 5553 5545 -8
+ Partials 1352 1349 -3 🚀 New features to boost your workflow:
|
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.
Fixes the following unit test failure on Switch:
https://github.com/getsentry/sentry-switch/actions/runs/38732357928/job/116426400577
On Switch, the platform integration supplies a release, enabling automatic session tracking.
sentry_close()then sends a session envelope in addition to the event expected by the tests added in #2195. Their callback counts this envelope and replaces the savedthreadswith null, failing all three capture tests.Disable automatic session tracking in their shared setup, matching the neighboring capture tests.