Join Slack
Powered by
I’m having issues in my unit test when I try to us...
# coroutines
j
jean
07/03/2020, 6:50 AM
I’m having issues in my unit test when I try to use AssertFlow extension on a StateFlow instance. If I use
expectItem()
I get a timeout exception, but if I check for no more items, it tells me something was received. Any hints to fix this?
j
julian
07/03/2020, 7:26 AM
Where is
AssertFlow
from?
@jean
j
jean
07/03/2020, 7:28 AM
Article here :
https://proandroiddev.com/kotlin-flow-assert-ff45465c01c0
File in repo here :
https://github.com/cashapp/sqldelight/blob/master/extensions/coroutines-extensions/src/commonTest/kotlin/com/squareup/sqldelight/runtime/coroutines/FlowAssert.kt
8
Views
Open in Slack
Previous
Next