K Merle
09/02/2021, 11:40 AMdelay
inside LaunchedEffect
coroutine scope in androidTests? I am unable to test if following lambda has been called when delay
is present.
LaunchedEffect(Unit){
delay(splashTime)
navigate(viewModel.isAuthenticated())
}
K Merle
09/02/2021, 11:41 AMrunBlockingTest
and advanceTimeBy()
do not help.Zach Klippenstein (he/him) [MOD]
09/02/2021, 1:53 PMmainClock
to control time on compose coroutines. https://developer.android.com/reference/kotlin/androidx/compose/ui/test/junit4/ComposeTestRuleK Merle
09/02/2021, 2:04 PMRekha
09/02/2021, 7:34 PMK Merle
09/02/2021, 8:41 PMsplashTime
and it works.