From 3e5ea0594de790428f16404b92405d4341ff6715 Mon Sep 17 00:00:00 2001 From: Ian Wagner Date: Mon, 13 Nov 2023 13:55:55 +0900 Subject: [PATCH] Fix broken unit tests --- .../ferrostar/core/SimulatedLocationProviderTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt b/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt index fd965e8d..d58f082a 100644 --- a/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt +++ b/android/core/src/test/java/com/stadiamaps/ferrostar/core/SimulatedLocationProviderTest.kt @@ -4,6 +4,7 @@ import org.junit.Test import org.junit.Assert.* import uniffi.ferrostar.GeographicCoordinates +import java.time.Instant import java.util.concurrent.CountDownLatch import java.util.concurrent.Executors import java.util.concurrent.TimeUnit @@ -20,7 +21,7 @@ class SimulatedLocationProviderTest { @Test fun `set location`() { val locationProvider = SimulatedLocationProvider() - val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0f, null) + val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0, null, Instant.now()) locationProvider.lastLocation = location @@ -31,7 +32,7 @@ class SimulatedLocationProviderTest { fun `test listener events`() { val latch = CountDownLatch(1) val locationProvider = SimulatedLocationProvider() - val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0f, null) + val location = SimulatedLocation(GeographicCoordinates(42.02, 24.0), 12.0, null, Instant.now()) val listener = object : LocationUpdateListener { override fun onLocationUpdated(location: Location) {