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

test: Fix SentryStacktraceBuilderTests #1372

Merged
merged 6 commits into from
Oct 12, 2021

Conversation

philipphofmann
Copy link
Member

@philipphofmann philipphofmann commented Oct 12, 2021

📜 Description

testAsyncStacktraces should be testing if stack traces of different threads
are stitched together, which it didn't do, because we were only building
the stack trace on the main thread. This is fixed now by building the
stack trace across different threads. Furthermore, the tests now use
their own queue to avoid side effects when testing.

#skip-changelog

💡 Motivation and Context

Fixes failing tests in #1371

testAsyncStacktraces should be testing if stack traces of different threads
are stitched together, which it didn't do, because we were only building
the stack trace on the main thread. This is fixed now by building the
stack trace across different threads. Furthermore, the tests now use
its own queue to avoid side effects when testing.
Copy link
Contributor

@brustolin brustolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-commenter
Copy link

codecov-commenter commented Oct 12, 2021

Codecov Report

Merging #1372 (9ad455b) into master (dfce484) will increase coverage by 0.09%.
The diff coverage is n/a.

❗ Current head 9ad455b differs from pull request most recent head 1865dc4. Consider uploading reports for the commit 1865dc4 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1372      +/-   ##
==========================================
+ Coverage   95.45%   95.54%   +0.09%     
==========================================
  Files         153      153              
  Lines        5500     5500              
==========================================
+ Hits         5250     5255       +5     
+ Misses        250      245       -5     
Impacted Files Coverage Δ
Sources/Sentry/SentryNetworkTracker.m 97.67% <0.00%> (-0.78%) ⬇️
Sources/Sentry/SentryOptions.m 98.70% <0.00%> (-0.65%) ⬇️
Sources/Sentry/SentryNetworkTrackingIntegration.m 100.00% <0.00%> (+7.40%) ⬆️
Sources/Sentry/SentryStacktraceBuilder.m 100.00% <0.00%> (+12.50%) ⬆️
Sources/Sentry/SentryCrashAdapter.m 84.61% <0.00%> (+15.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb00be7...1865dc4. Read the comment docs.

@philipphofmann philipphofmann merged commit f66fd0f into master Oct 12, 2021
@philipphofmann philipphofmann deleted the test/fix-stacktrace-builder-tests branch October 12, 2021 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants