Skip to content

Commit

Permalink
Bump waiting time to (attempt to) deal with flakiness in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-udy committed Oct 19, 2023
1 parent 536cba0 commit d68038f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions enro/src/androidTest/java/dev/enro/TestExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -206,7 +212,7 @@ fun expectNoActivity() {
}

fun waitFor(block: () -> Boolean) {
val maximumTime = 2_000
val maximumTime = 4_000
val startTime = System.currentTimeMillis()

while(true) {
Expand Down

0 comments on commit d68038f

Please sign in to comment.