From d68038fdd1b0c5b3704cba0ac79ed013c8b4a33e Mon Sep 17 00:00:00 2001 From: Isaac Udy Date: Thu, 19 Oct 2023 22:13:49 +1300 Subject: [PATCH] Bump waiting time to (attempt to) deal with flakiness in CI --- enro/src/androidTest/java/dev/enro/TestExtensions.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/enro/src/androidTest/java/dev/enro/TestExtensions.kt b/enro/src/androidTest/java/dev/enro/TestExtensions.kt index 2c2354c7..4b34d05b 100644 --- a/enro/src/androidTest/java/dev/enro/TestExtensions.kt +++ b/enro/src/androidTest/java/dev/enro/TestExtensions.kt @@ -10,13 +10,19 @@ import androidx.test.core.app.ActivityScenario import androidx.test.platform.app.InstrumentationRegistry import androidx.test.runner.lifecycle.ActivityLifecycleMonitorRegistry import androidx.test.runner.lifecycle.Stage -import dev.enro.core.* +import dev.enro.core.AnyOpenInstruction +import dev.enro.core.NavigationContext +import dev.enro.core.NavigationHandle +import dev.enro.core.NavigationKey +import dev.enro.core.TypedNavigationHandle +import dev.enro.core.asTyped import dev.enro.core.compose.ComposableDestination import dev.enro.core.container.NavigationBackstack import dev.enro.core.container.NavigationContainer import dev.enro.core.container.setBackstack import dev.enro.core.controller.NavigationController import dev.enro.core.controller.navigationController +import dev.enro.core.getNavigationHandle import dev.enro.core.result.NavigationResultChannel import kotlin.reflect.KClass @@ -206,7 +212,7 @@ fun expectNoActivity() { } fun waitFor(block: () -> Boolean) { - val maximumTime = 2_000 + val maximumTime = 4_000 val startTime = System.currentTimeMillis() while(true) {