Minor. Throw exceptions in test coroutine builders

This commit is contained in:
Ilmir Usmanov
2021-02-02 16:47:32 +01:00
parent 52e22796e1
commit a30a961cf5
8 changed files with 24 additions and 8 deletions
@@ -19,7 +19,9 @@ import kotlin.coroutines.*
import test.*
fun builder(c: suspend () -> Unit) {
c.startCoroutine(Continuation(EmptyCoroutineContext) {})
c.startCoroutine(Continuation(EmptyCoroutineContext) {
it.getOrThrow()
})
}
fun box(): String {