Lukasz Kalnik
01/31/2022, 5:29 PMViewModel.onCleared()
? It is protected, so cannot be called from tests... I cancel some coroutines jobs there and have to call it at the end of my test. I'm thinking about adding a separate method just for tests which calls onCleared()
internally, but it seems quite ugly.Umar Ata
01/31/2022, 5:36 PMLukasz Kalnik
01/31/2022, 5:44 PM