Christian Sousa
@Test fun fetchAvailableStuff() { runBlockingTest { val job = launch(Dispatchers.Main) { api.fetchAvailableStuff { success -> println("----------- TEST -----------") println(success) } } job.join() } }
java.lang.IllegalStateException: This job has not completed yet
Saurabh
runBlockingTest
runBlocking
A modern programming language that makes developers happier.