mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-17 19:58:57 +03:00
Fix code quality issues
This commit is contained in:
parent
0488ce822f
commit
4c3f6db55c
2 changed files with 2 additions and 2 deletions
|
@ -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") }
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue