marlonlom
03/14/2024, 5:29 PMnone
, y si no, se pasa a searching
, en este punto es donde debo realizar la busqueda, sobre la cual, dependiendo del listado de resultados, el state pasa a empty
o a success
..
Cómo puedo hacer que se ejecute la función de consulta dado el state? en lo que llevo haciendo, si hay texto no vacio, el state al momento de hacer collect sale searching
y no empty/success
😞Alejandro Rios
03/14/2024, 8:59 PMAlejandro Rios
03/14/2024, 9:09 PMmarlonlom
03/14/2024, 10:24 PMmarlonlom
03/14/2024, 10:35 PMkotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 1m, the test coroutine is not completing
Alejandro Rios
03/14/2024, 11:16 PMAlejandro Rios
03/14/2024, 11:17 PMAlejandro Rios
03/14/2024, 11:28 PMmarlonlom
03/15/2024, 4:55 PMkotlinx.coroutines.CoroutinesInternalError: Fatal exception in coroutines machinery for DispatchedContinuation[Dispatchers.IO, Continuation at dev.marlonlom.apps.cappajv.features.catalog_list.CatalogListRepository$fetchCatalogItems$2.invokeSuspend(CatalogListRepository.kt)@11a67ce0]. Please read KDoc to 'handleFatalException' method and report this incident to maintainers
Alejandro Rios
03/15/2024, 5:27 PMmarlonlom
03/15/2024, 6:30 PMmarlonlom
03/15/2024, 8:12 PMmockk -> https://github.com/mockk/mockk/issues/1078
kotlinx-coroutines-test -> https://github.com/Kotlin/kotlinx.coroutines/issues/3705
Alejandro Rios
03/18/2024, 2:39 PMmarlonlom
03/18/2024, 9:15 PMRethrowingExceptionHandler
.. utilice esta clase y las pruebas salieron exitosas.
Si bien, aún tengo la duda de cómo eso solucionó el tema de que en github actions las pruebas donde uso mocks fallan (en localhost funcionan bien ) ...