Skip to content

Commit 261c1f7

Browse files
committed
updated checks in NN
1 parent d9471d9 commit 261c1f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libnavigation-core/src/androidTest/java/com/mapbox/navigation/core/trip/service/ArtificialDriverTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ class ArtificialDriverTest {
6464
continuation.resume(it ?: "null")
6565
}
6666
}
67-
val notTrackingStates = states.filter { it.routeState != RouteState.TRACKING }
67+
val offRouteState = states.filter { it.routeState == RouteState.OFF_ROUTE }
6868
assertTrue(
69-
"not all states are tracking, " +
70-
"see history file $historyFile: $notTrackingStates",
71-
notTrackingStates.isEmpty()
69+
"${offRouteState.size} off-route states have been detected(" +
70+
"more info in $historyFile): $offRouteState",
71+
offRouteState.isEmpty()
7272
)
7373
}
7474
}

0 commit comments

Comments
 (0)