Fix android tests

This commit is contained in:
Koitharu
2022-07-18 12:56:56 +03:00
parent 206fb4e584
commit 35f450e444
6 changed files with 29 additions and 14 deletions

View File

@@ -0,0 +1,9 @@
package org.koitharu.kotatsu
import android.app.Instrumentation
import kotlin.coroutines.resume
import kotlin.coroutines.suspendCoroutine
suspend fun Instrumentation.awaitForIdle() = suspendCoroutine<Unit> { cont ->
waitForIdle { cont.resume(Unit) }
}