From 7558a6c6e5b2b0168a3cb4f99e77d3590d3740fb Mon Sep 17 00:00:00 2001 From: VysotskiVadim Date: Fri, 27 Jan 2023 11:06:54 +0100 Subject: [PATCH 1/2] clarified distance to start accuracy --- .../instrumentation_tests/core/UpcomingRouteObjectsTest.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt index 71835a08968..6a23676c026 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt @@ -21,7 +21,6 @@ import com.mapbox.navigation.testing.ui.utils.runOnMainSync import kotlinx.coroutines.flow.first import org.junit.Assert.assertEquals import org.junit.Before -import org.junit.Ignore import org.junit.Rule import org.junit.Test import java.net.URI @@ -76,8 +75,9 @@ class UpcomingRouteObjectsTest : BaseTest(EmptyTestActivity:: .first { it.roadObject.id == incidentId } assertEquals( - upcomingIncidentForOneLeg.distanceToStart, - upcomingIncidentForTwoLegsRoute.distanceToStart + upcomingIncidentForOneLeg.distanceToStart!!, + upcomingIncidentForTwoLegsRoute.distanceToStart!!, + 0.1 ) } From 362644b21ead94e55d9e701a07556ed024986db7 Mon Sep 17 00:00:00 2001 From: VysotskiVadim Date: Fri, 27 Jan 2023 11:18:50 +0100 Subject: [PATCH 2/2] clarified accuracy of distance to start --- .../instrumentation_tests/core/UpcomingRouteObjectsTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt index 6a23676c026..3a6b4559c8d 100644 --- a/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt +++ b/instrumentation-tests/src/androidTest/java/com/mapbox/navigation/instrumentation_tests/core/UpcomingRouteObjectsTest.kt @@ -21,6 +21,7 @@ import com.mapbox.navigation.testing.ui.utils.runOnMainSync import kotlinx.coroutines.flow.first import org.junit.Assert.assertEquals import org.junit.Before +import org.junit.Ignore import org.junit.Rule import org.junit.Test import java.net.URI