and my test fails with "This job has not completed yet" what are some ways of figuring out what is causing this?
I like that it does fail, but it doesn't bring any information on where the problem is.
You don't think it could be me having a coroutine lost somewhere resulting in my test to fail, because I didn't wait for it to finish correctly?
g
gildor
03/29/2020, 4:30 PM
It may be. But honestly I just gave up and use runBlocking instead
j
jeggy
03/29/2020, 4:31 PM
I have a problem in production where some data gets lost just sometimes, and I'm trying to figure out exactly why it happens. and I have successfully created a small test that fails sometimes with the
runBlockingTest
and I really want to figure out exactly where it goes wrong.
to finish, because that's the point of this library, everything in there could potentially be runned one some other thread or something complicated.
Everything is defined within the builder block and then it should just know when it's finished by itself. By passing the coroutineContext along did fix the issue 🙂