Commit 7b67c20
fix(test): Fix flaky background-foreground replay test (#5140)
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 bcd5eb7 commit 7b67c20
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