Skip to content

Commit 5a22d80

Browse files
committed
Add workaround for KT-27190 in test
1 parent 41319d5 commit 5a22d80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/kotlinx-coroutines-core/test/exceptions/StackTraceRecoveryNestedChannelsTest.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class StackTraceRecoveryNestedChannelsTest : TestBase() {
3434
channel.close(RecoverableTestException())
3535

3636
try {
37+
yield() // Will be fixed in 1.3.20 after KT-27190
3738
sendWithContext(coroutineContext)
3839
} catch (e: Exception) {
3940
verifyStackTrace(e,
@@ -51,7 +52,7 @@ class StackTraceRecoveryNestedChannelsTest : TestBase() {
5152
"\tat kotlinx.coroutines.exceptions.StackTraceRecoveryNestedChannelsTest.sendWithContext(StackTraceRecoveryNestedChannelsTest.kt:18)\n" +
5253
"\tat kotlinx.coroutines.exceptions.StackTraceRecoveryNestedChannelsTest\$testOfferWithCurrentContext\$1.invokeSuspend(StackTraceRecoveryNestedChannelsTest.kt:37)\n" +
5354
"Caused by: kotlinx.coroutines.RecoverableTestException\n" +
54-
"\tat kotlinx.coroutines.exceptions.StackTraceRecoveryNestedChannelsTest\$testOfferWithCurrentContext\$1.invokeSuspend(StackTraceRecoveryNestedChannelsTest.kt:33)\n" +
55+
"\tat kotlinx.coroutines.exceptions.StackTraceRecoveryNestedChannelsTest\$testOfferWithCurrentContext\$1.invokeSuspend(StackTraceRecoveryNestedChannelsTest.kt:34)\n" +
5556
"\tat kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n")
5657
}
5758
}

0 commit comments

Comments
 (0)