Skip to content

Commit fe7c374

Browse files
committed
test(AppHang): adjust the timing in testBelowThresholdEvents to allow more headroom on CI
1 parent 575ed4b commit fe7c374

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bugsnag-plugin-android-apphang/src/androidTest/java/com/bugsnag/android/SequentialAppHangsTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import org.junit.Test
1010
import java.util.concurrent.CountDownLatch
1111
import java.lang.Thread as JThread
1212

13-
private const val APP_HANG_THRESHOLD = 200L
13+
private const val APP_HANG_THRESHOLD = 500L
1414

1515
/**
1616
* Tests for LooperMonitorThread without cooldown period configured.
@@ -60,7 +60,7 @@ class SequentialAppHangsTest {
6060
val countDownLatch = CountDownLatch(10)
6161
val task = object : Runnable {
6262
override fun run() {
63-
JThread.sleep((APP_HANG_THRESHOLD / 2) - 10)
63+
JThread.sleep(APP_HANG_THRESHOLD * 3 / 4)
6464
countDownLatch.countDown()
6565

6666
if (countDownLatch.count > 0) {

0 commit comments

Comments
 (0)