Skip to content

Commit 523e9e6

Browse files
authored
Merge pull request #2359 from bugsnag/PLAT-15307/cxx-crashloop-fix
Reduce CXXCrashLoopScenario flakes
2 parents 2c942da + b03f7b7 commit 523e9e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • features/fixtures/mazerunner/cxx-scenarios-bugsnag/src/main/java/com/bugsnag/android/mazerunner/scenarios

features/fixtures/mazerunner/cxx-scenarios-bugsnag/src/main/java/com/bugsnag/android/mazerunner/scenarios/CXXCrashLoopScenario.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import android.content.Context
44
import com.bugsnag.android.Bugsnag
55
import com.bugsnag.android.Configuration
66

7+
private const val STARTUP_SETTLING_TIME = 500L
8+
79
/**
810
* Triggers a crash loop which Bugsnag allows recovery from.
911
*/
@@ -36,6 +38,8 @@ internal class CXXCrashLoopScenario(
3638
)
3739
}
3840

41+
Thread.sleep(STARTUP_SETTLING_TIME)
42+
3943
// the last run info allows the scenario to escape from what would otherwise be
4044
// a crash loop, by conditionally entering a 'safe mode'.
4145
if (lastRunInfo?.crashed == true) {

0 commit comments

Comments
 (0)