-
-
Notifications
You must be signed in to change notification settings - Fork 363
ref: SessionTracker remove observers #5461
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
ref: SessionTracker remove observers #5461
Conversation
// After stopping the session tracker, we need to set a new hub to the SDK. | ||
fixture.setNewHubToSDK() | ||
} | ||
|
||
private func abnormalStopSut() { | ||
sut.stop(withGracefully: false) | ||
sut.removeObservers() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
h
: We still need to reset the wasStartSessionCalled
, that's why I didn't just remove the observer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. The tests are all green, cause they all create a new sut. You only need to set wasStartSessionCalled = NO
in stop, when you're not getting a new instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok if tests are green, LGTM.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## philprime/issue-5069 #5461 +/- ##
==========================================================
- Coverage 86.214% 86.086% -0.128%
==========================================================
Files 399 399
Lines 34775 34765 -10
Branches 15078 14882 -196
==========================================================
- Hits 29981 29928 -53
- Misses 4750 4797 +47
+ Partials 44 40 -4
... and 19 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
d5b55b1
into
philprime/issue-5069
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
927261d | 1210.24 ms | 1238.59 ms | 28.35 ms |
b5d1c3d | 1231.00 ms | 1255.47 ms | 24.47 ms |
bc06793 | 1231.04 ms | 1247.98 ms | 16.94 ms |
4deddc5 | 1220.81 ms | 1234.41 ms | 13.60 ms |
6996d49 | 1213.72 ms | 1231.27 ms | 17.55 ms |
334d6f2 | 1202.65 ms | 1232.21 ms | 29.56 ms |
5be643e | 1217.51 ms | 1246.15 ms | 28.64 ms |
7ba9cd4 | 1227.26 ms | 1258.63 ms | 31.37 ms |
825200b | 1200.16 ms | 1227.76 ms | 27.59 ms |
9c7c623 | 1231.18 ms | 1249.28 ms | 18.09 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
927261d | 23.75 KiB | 843.32 KiB | 819.57 KiB |
b5d1c3d | 23.75 KiB | 841.30 KiB | 817.55 KiB |
bc06793 | 23.75 KiB | 847.75 KiB | 824.00 KiB |
4deddc5 | 23.76 KiB | 822.08 KiB | 798.32 KiB |
6996d49 | 23.75 KiB | 847.75 KiB | 824.00 KiB |
334d6f2 | 23.75 KiB | 838.54 KiB | 814.79 KiB |
5be643e | 23.76 KiB | 820.06 KiB | 796.30 KiB |
7ba9cd4 | 23.75 KiB | 847.86 KiB | 824.12 KiB |
825200b | 23.75 KiB | 847.90 KiB | 824.15 KiB |
9c7c623 | 23.76 KiB | 822.00 KiB | 798.24 KiB |
Replace stop(gracefully) with removeObservers.
This PR is based on #5121 (comment).
#skip-changelog