Repository navigation
Commit 5d64606
test(android): Fix UI tests flaking on the standalone app start
doubleInitDoesNotWait: the second init sends a headless app start from a
main thread IdleHandler, which could take the transaction profiler from
the afterRestart transaction. Wait for the main thread to be idle first.
checkAppStartFramesMeasurements: the app start is sent right after init,
while SendCachedEnvelopeIntegration scans the disk cache, so the same
envelope can arrive twice. Deduplicate app starts by event ID, as MockRelay
already does for other envelopes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8248747 commit 5d64606
2 files changed
Lines changed: 10 additions & 1 deletion
File tree
- sentry-android-integration-tests/sentry-uitest-android/src/androidTest/java/io/sentry/uitest/android
- mockservers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments