Skip to content

Commit

Permalink
updated checks so that only off-route events are detected
Browse files Browse the repository at this point in the history
  • Loading branch information
VysotskiVadim committed Jan 13, 2023
1 parent d9471d9 commit 428cd54
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ class ArtificialDriverTest {
continuation.resume(it ?: "null")
}
}
val notTrackingStates = states.filter { it.routeState != RouteState.TRACKING }
val offRouteState = states.filter { it.routeState == RouteState.OFF_ROUTE }
assertTrue(
"not all states are tracking, " +
"see history file $historyFile: $notTrackingStates",
notTrackingStates.isEmpty()
"${offRouteState.size} off-route states have been detected(" +
"more info in $historyFile): $offRouteState",
offRouteState.isEmpty()
)
}
}
Expand Down

0 comments on commit 428cd54

Please sign in to comment.