Commit da63abe
test(android): Avoid ANR profiling integration test race
Drive the ANR profiling state-machine test synchronously instead of starting the background polling thread.
The previous version could read the queue-backed profile store while the polling thread was still appending stack traces, which made the release unit test flaky with NoSuchElementException in QueueFile iteration.
Co-Authored-By: Codex <noreply@openai.com>1 parent ab5cfac commit da63abe
File tree
1 file changed
+1
-1
lines changed- sentry-android-core/src/test/java/io/sentry/android/core/anr
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments