From 8439e6a2c656435c3b43e0ba53682b1023ced62c Mon Sep 17 00:00:00 2001 From: Dave McCloskey Date: Wed, 6 Apr 2022 10:09:54 -0700 Subject: [PATCH] Increase default maxWait to 30 seconds. Since we check every 50ms this will not increase the test time when the device is not slow. Bug: 228066093 Test: atest TrustTests (details in bug) Change-Id: Icd73b77aa5ffd446a55aa427bc85edcb3b5b041e --- tests/TrustTests/src/android/trust/test/lib/utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TrustTests/src/android/trust/test/lib/utils.kt b/tests/TrustTests/src/android/trust/test/lib/utils.kt index 78140abec2106..e047202f67408 100644 --- a/tests/TrustTests/src/android/trust/test/lib/utils.kt +++ b/tests/TrustTests/src/android/trust/test/lib/utils.kt @@ -33,7 +33,7 @@ private const val TAG = "TrustTestUtils" */ internal fun wait( description: String? = null, - maxWait: Long = 1500L, + maxWait: Long = 30000L, rate: Long = 50L, conditionFunction: (count: Int) -> Boolean ) {