Skip to content

Commit

Permalink
Fix broken unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthetechie committed Nov 13, 2023
1 parent 28cd284 commit 3e5ea05
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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) {
Expand Down

0 comments on commit 3e5ea05

Please sign in to comment.