Bump coroutines from 1.5.2 to 1.6.0 (#1731)

This commit is contained in:
dependabot[bot] 2021-12-25 08:38:27 +00:00 committed by GitHub
parent f718147ae9
commit 8560fd7e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions

View File

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

View File

@ -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`() {