Commit f0d45f1
fix(test): Fix flaky background-foreground replay test
Increase sessionIntervalMillis from 2ms to 500ms so the timer task
from the first onBackground() doesn't fire before cancelTask() in
the second onForeground() can cancel it. With 2ms the timer could
race and call replayController.stop() twice.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9054d65 commit f0d45f1
File tree
1 file changed
+2
-1
lines changed- sentry-android-core/src/test/java/io/sentry/android/core
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| |||
0 commit comments