kluck
01/18/2021, 4:20 PMIllegalStateException: This job has not completed yet
. Here's a basic example, could you tell me what I'm doing wrong ? Thanks
@Test
fun test() = runBlockingTest {
IO.effect { delay(10000) }.suspended()
}
kluck
01/18/2021, 4:42 PM@Test
fun test() {
IO.effect { delay(10000) }.unsafeRunSync()
println("Done")
}
pakoito
01/18/2021, 4:54 PMpakoito
01/18/2021, 4:55 PMrunBlockingTest
, it’s from kotlinx.coroutines who do their own thingkluck
01/19/2021, 8:25 AMkotlinx-coroutines-test
gives some control over the clock, but I don't really know how to use it alongside IOspakoito
01/19/2021, 12:23 PMpakoito
01/19/2021, 12:24 PM