mbonnin
04/10/2024, 4:53 PM@Test
fun test() = runBlocking {
flow {
emit(1)
// This delay makes the test pass while it fails with 'Unconsumed events' otherwise
delay(1000)
}.test {
awaitItem()
}
}
jw
04/10/2024, 4:56 PMmbonnin
04/10/2024, 4:59 PMmbonnin
04/10/2024, 4:59 PMjw
04/10/2024, 5:01 PMjw
04/10/2024, 5:02 PMjw
04/10/2024, 5:02 PMmbonnin
04/10/2024, 5:05 PM