mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-02-21 20:24:44 +01:00
Bump coroutines from 1.5.2 to 1.6.0 (#1731)
This commit is contained in:
parent
f718147ae9
commit
8560fd7e81
@ -170,7 +170,7 @@ ext {
|
|||||||
room = "2.4.0"
|
room = "2.4.0"
|
||||||
chucker = "3.5.2"
|
chucker = "3.5.2"
|
||||||
mockk = "1.12.1"
|
mockk = "1.12.1"
|
||||||
coroutines = "1.5.2"
|
coroutines = "1.6.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -1,23 +1,21 @@
|
|||||||
package io.github.wulkanowy.utils
|
package io.github.wulkanowy.utils
|
||||||
|
|
||||||
import io.mockk.Runs
|
import io.mockk.*
|
||||||
import io.mockk.coEvery
|
|
||||||
import io.mockk.coVerifyOrder
|
|
||||||
import io.mockk.just
|
|
||||||
import io.mockk.mockk
|
|
||||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import kotlinx.coroutines.flow.flowOf
|
import kotlinx.coroutines.flow.flowOf
|
||||||
import kotlinx.coroutines.flow.launchIn
|
import kotlinx.coroutines.flow.launchIn
|
||||||
import kotlinx.coroutines.sync.Mutex
|
import kotlinx.coroutines.sync.Mutex
|
||||||
import kotlinx.coroutines.test.TestCoroutineScope
|
import kotlinx.coroutines.test.TestScope
|
||||||
|
import kotlinx.coroutines.test.UnconfinedTestDispatcher
|
||||||
|
import kotlinx.coroutines.test.advanceTimeBy
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
@OptIn(ExperimentalCoroutinesApi::class)
|
@OptIn(ExperimentalCoroutinesApi::class)
|
||||||
class FlowUtilsKtTest {
|
class FlowUtilsKtTest {
|
||||||
|
|
||||||
private val testScope = TestCoroutineScope()
|
private val testScope = TestScope(UnconfinedTestDispatcher())
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `fetch from two places with same remote data`() {
|
fun `fetch from two places with same remote data`() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user