Florian Walther (live streaming)
01/09/2022, 2:30 PMinit {
applicationScope.launch {
setPomodoroPhaseAndResetTimer(PomodoroPhase.POMODORO)
timerPreferences.collect { timerPreferences ->
[...]
}
}
}
Running this in a Singleton that's involved in a unit test gets my tests stuck (and time out after 60s). The applicationScope
is injected and uses TestScope
in the test. Do I have to cancel the collection manually?