Marko Novakovic
11/18/2021, 10:15 AMFragment.onCreate
am calling lifecycleScope.launch { ... }
. …
😄 is something I need to verify but espresso test is not waiting for it so it’s not deterministic, sometimes it fails and sometimes it passes.
how can I make espresso test to wait for …
inside launch {}
to finish? is IdlingResources
what am looking for?
ideally I would move all of that into ViewModel
and not deal with it in the Fragment
but currently it’s not up to me 😕gildor
11/18/2021, 10:23 AMMarko Novakovic
11/18/2021, 10:26 AMlifecycleScope.launch {}
. is triggering analytics/tracking so that’s not something user has to know about. because of the state of the code there are suspending functions that have to be called as part of thatgildor
11/18/2021, 10:37 AMMarko Novakovic
11/18/2021, 10:38 AMMarko Novakovic
11/18/2021, 10:52 AMlaunch(Dispatchers.Unconfined)
solved it but am not happy about itgildor
11/19/2021, 6:30 AMpsh
11/19/2021, 3:44 PMMarko Novakovic
11/19/2021, 4:10 PM