File tree 1 file changed +8
-4
lines changed
kotlinx-coroutines-core/jvm/test/exceptions
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import kotlinx.coroutines.intrinsics.*
10
10
import kotlinx.coroutines.selects.*
11
11
import org.junit.Test
12
12
import java.util.concurrent.*
13
+ import kotlin.concurrent.*
13
14
import kotlin.coroutines.*
14
15
import kotlin.test.*
15
16
@@ -292,10 +293,13 @@ class StackTraceRecoveryTest : TestBase() {
292
293
293
294
val barrier = CyclicBarrier (2 )
294
295
var exception: Throwable ? = null
295
- await.startCoroutineUnintercepted(Continuation (EmptyCoroutineContext ) {
296
- exception = it.exceptionOrNull()
297
- barrier.await()
298
- })
296
+
297
+ thread {
298
+ await.startCoroutineUnintercepted(Continuation (EmptyCoroutineContext ) {
299
+ exception = it.exceptionOrNull()
300
+ barrier.await()
301
+ })
302
+ }
299
303
300
304
barrier.await()
301
305
val e = exception
You can’t perform that action at this time.
0 commit comments