Increase HandlerUtilsTest timeout to 500ms

The test is currently 1~3% flaky with a 200ms timeout, in particular it
may fail if a GC runs while waitForIdle is running.

Increase the timeout to 1s, which should be enough to cover such cases.

Change-Id: Ic6d4ff18fb81feb09639442196cdef3c5cfdf30c
Fixes: 302949876
Test: TH
This commit is contained in:
Remi NGUYEN VAN
2023-10-06 08:20:46 +00:00
parent 87d128f43d
commit eaa71ff305

View File

@@ -27,7 +27,7 @@ import org.junit.runner.RunWith
import org.junit.runners.JUnit4
private const val ATTEMPTS = 50 // Causes testWaitForIdle to take about 150ms on aosp_crosshatch-eng
private const val TIMEOUT_MS = 200
private const val TIMEOUT_MS = 1000
@RunWith(JUnit4::class)
class HandlerUtilsTest {