diff --git a/vector/src/main/java/im/vector/app/features/location/LocationTracker.kt b/vector/src/main/java/im/vector/app/features/location/LocationTracker.kt index 130cf0fa7b..aa05fe764b 100644 --- a/vector/src/main/java/im/vector/app/features/location/LocationTracker.kt +++ b/vector/src/main/java/im/vector/app/features/location/LocationTracker.kt @@ -64,7 +64,7 @@ class LocationTracker @Inject constructor( private val _locations = MutableSharedFlow(replay = 1) /** - * SharedFlow to collect location updates + * SharedFlow to collect location updates. */ val locations = _locations.asSharedFlow() .onEach { Timber.d("new location emitted") } diff --git a/vector/src/test/java/im/vector/app/features/location/LocationTrackerTest.kt b/vector/src/test/java/im/vector/app/features/location/LocationTrackerTest.kt index f2fa8bfdc5..454a73cd70 100644 --- a/vector/src/test/java/im/vector/app/features/location/LocationTrackerTest.kt +++ b/vector/src/test/java/im/vector/app/features/location/LocationTrackerTest.kt @@ -203,7 +203,7 @@ class LocationTrackerTest { } @Test - fun `when location updates are received from network provider then network locations are taken if none are received from fused or gps provider`() = runTest { + fun `when location updates are received from network provider then network locations are taken if none are received from fused, gps provider`() = runTest { every { fakeActiveSessionHolder.fakeSession.coroutineScope } returns this val providers = listOf(LocationManager.GPS_PROVIDER, LocationManager.FUSED_PROVIDER, LocationManager.NETWORK_PROVIDER) mockAvailableProviders(providers)