We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f202bd + fe7c374 commit 297ad8eCopy full SHA for 297ad8e
1 file changed
bugsnag-plugin-android-apphang/src/androidTest/java/com/bugsnag/android/SequentialAppHangsTest.kt
@@ -10,7 +10,7 @@ import org.junit.Test
10
import java.util.concurrent.CountDownLatch
11
import java.lang.Thread as JThread
12
13
-private const val APP_HANG_THRESHOLD = 200L
+private const val APP_HANG_THRESHOLD = 500L
14
15
/**
16
* Tests for LooperMonitorThread without cooldown period configured.
@@ -60,7 +60,7 @@ class SequentialAppHangsTest {
60
val countDownLatch = CountDownLatch(10)
61
val task = object : Runnable {
62
override fun run() {
63
- JThread.sleep((APP_HANG_THRESHOLD / 2) - 10)
+ JThread.sleep(APP_HANG_THRESHOLD * 3 / 4)
64
countDownLatch.countDown()
65
66
if (countDownLatch.count > 0) {
0 commit comments