You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/RouteRefreshTest.kt
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -556,19 +556,23 @@ class RouteRefreshTest : BaseTest<EmptyTestActivity>(EmptyTestActivity::class.ja
556
556
val alternativeRoutes = mapboxNavigation.requestRoutes(routeOptions)
557
557
.getSuccessfulResultOrThrowException()
558
558
.routes
559
-
// alternative which was requested on the second leg of the original route,
560
-
// so the alternative has only one leg while the original route has two
559
+
// In this test setup we are considering a case where user was driving along the route,
560
+
// started the second leg and received an alternative, and selected it before the fork.
561
+
// This means that the primary route is shorter than the alternative route (former primary route).
561
562
val primaryRoute = alternativeForMultileg(activity).toNavigationRoutes().first()
562
563
563
564
// corresponds to currentRouteGeometryIndex = 70 for alternative route and 11 for the primary route
Copy file name to clipboardExpand all lines: libnavigation-core/src/main/java/com/mapbox/navigation/core/routealternatives/AlternativeRouteProgressDataProvider.kt
Copy file name to clipboardExpand all lines: libnavigation-core/src/test/java/com/mapbox/navigation/core/routealternatives/AlternativeRouteProgressDataProviderTest.kt
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,9 @@ class AlternativeRouteProgressDataProviderTest {
0 commit comments