diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt index 685b653863b..5d0d30da1a9 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/CoreRerouteTest.kt @@ -802,9 +802,13 @@ class CoreRerouteTest : BaseCoreNoCleanUpTest() { .coordinatesList(mockRoute.routeWaypoints).build() ).getSuccessfulResultOrThrowException().routes.reversed() - mapboxNavigation.setNavigationRoutes(routes) - - mapboxNavigation.routeProgressUpdates().first() + stayOnPosition( + mockRoute.routeWaypoints.first(), + 0f + ) { + mapboxNavigation.setNavigationRoutes(routes) + mapboxNavigation.routeProgressUpdates().first() + } mapboxNavigation.navigateNextRouteLeg() mockLocationReplayerRule.loopUpdateUntil(secondLegLocation) { mapboxNavigation.routeProgressUpdates()