tylerwilson
08/02/2024, 12:59 PMtylerwilson
08/02/2024, 1:00 PM@Test
fun getBlockReasons() = runTest {
val reasons = suspendCoroutine { continuation ->
Network().getBlockReasons(null, auth) { reasons, exception ->
reasons.let {
continuation.resume(it)
}
exception?.let {
continuation.resumeWithException(exception)
}
}
}
assertTrue(reasons.isNotEmpty(), "Reasons returned is empty.")
}
and the test just spins forever:tylerwilson
08/02/2024, 1:02 PMEdoardo Luppi
08/07/2024, 12:50 PM