From e863eb75862294b6e2f413dcee906d07425fcf05 Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 6 Dec 2023 15:53:18 -0500 Subject: [PATCH] Bump timeout for flaky test. --- .../emojisearch/android/tests/AbstractEmojiSearchUiTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/emoji-search/android-tests/src/main/kotlin/com/example/redwood/emojisearch/android/tests/AbstractEmojiSearchUiTest.kt b/samples/emoji-search/android-tests/src/main/kotlin/com/example/redwood/emojisearch/android/tests/AbstractEmojiSearchUiTest.kt index 3fe830e72d..11665233ce 100644 --- a/samples/emoji-search/android-tests/src/main/kotlin/com/example/redwood/emojisearch/android/tests/AbstractEmojiSearchUiTest.kt +++ b/samples/emoji-search/android-tests/src/main/kotlin/com/example/redwood/emojisearch/android/tests/AbstractEmojiSearchUiTest.kt @@ -50,7 +50,7 @@ abstract class AbstractEmojiSearchUiTest(private val appPackage: String) { awaitText("0. +1") } - private fun awaitText(value: String, duration: Duration = 4.seconds) { + private fun awaitText(value: String, duration: Duration = 10.seconds) { val text = device.findObject(UiSelector().text(value)) if (!text.waitForExists(duration.inWholeMilliseconds)) { throw AssertionError("Waited $duration for \"$value\" but never appeared")