Fix code quality issues

This commit is contained in:
Maxime NATUREL 2022-06-27 16:39:46 +02:00
parent 0488ce822f
commit 4c3f6db55c
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ class LocationTracker @Inject constructor(
private val _locations = MutableSharedFlow<Location>(replay = 1)
/**
* SharedFlow to collect location updates
* SharedFlow to collect location updates.
*/
val locations = _locations.asSharedFlow()
.onEach { Timber.d("new location emitted") }

View File

@ -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)