1
1
/*
2
- * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
5
package kotlinx.coroutines.exceptions
@@ -34,14 +34,13 @@ class StackTraceRecoveryTest : TestBase() {
34
34
val deferred = createDeferred(3 )
35
35
val traces = listOf (
36
36
" java.util.concurrent.ExecutionException\n " +
37
- " \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testAsync\$ 1\$ 1 \$ 1.invokeSuspend(StackTraceRecoveryTest.kt:99)\n " +
37
+ " \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testAsync\$ 1\$ createDeferred \$ 1.invokeSuspend(StackTraceRecoveryTest.kt:99)\n " +
38
38
" \t (Coroutine boundary)\n " +
39
- " \t at kotlinx.coroutines.DeferredCoroutine.await\$ suspendImpl(Builders.common.kt:99)\n " +
40
39
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.oneMoreNestedMethod(StackTraceRecoveryTest.kt:49)\n " +
41
40
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.nestedMethod(StackTraceRecoveryTest.kt:44)\n " +
42
41
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testAsync\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:17)\n " ,
43
42
" Caused by: java.util.concurrent.ExecutionException\n " +
44
- " \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testAsync\$ 1\$ 1 \$ 1.invokeSuspend(StackTraceRecoveryTest.kt:21)\n " +
43
+ " \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testAsync\$ 1\$ createDeferred \$ 1.invokeSuspend(StackTraceRecoveryTest.kt:21)\n " +
45
44
" \t at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)\n "
46
45
)
47
46
nestedMethod(deferred, * traces.toTypedArray())
@@ -59,7 +58,6 @@ class StackTraceRecoveryTest : TestBase() {
59
58
" java.util.concurrent.ExecutionException\n " +
60
59
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testCompletedAsync\$ 1\$ deferred\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:44)\n " +
61
60
" \t (Coroutine boundary)\n " +
62
- " \t at kotlinx.coroutines.DeferredCoroutine.await\$ suspendImpl(Builders.common.kt:99)\n " +
63
61
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.oneMoreNestedMethod(StackTraceRecoveryTest.kt:81)\n " +
64
62
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.nestedMethod(StackTraceRecoveryTest.kt:75)\n " +
65
63
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testCompletedAsync\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:71)" ,
@@ -94,7 +92,6 @@ class StackTraceRecoveryTest : TestBase() {
94
92
" kotlinx.coroutines.RecoverableTestException\n " +
95
93
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testWithContext\$ 1\$ deferred\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:143)\n " +
96
94
" \t (Coroutine boundary)\n " +
97
- " \t at kotlinx.coroutines.DeferredCoroutine.await\$ suspendImpl(Builders.common.kt:99)\n " +
98
95
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.innerMethod(StackTraceRecoveryTest.kt:158)\n " +
99
96
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ outerMethod\$ 2.invokeSuspend(StackTraceRecoveryTest.kt:151)\n " +
100
97
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.outerMethod(StackTraceRecoveryTest.kt:150)\n " +
@@ -132,7 +129,6 @@ class StackTraceRecoveryTest : TestBase() {
132
129
" kotlinx.coroutines.RecoverableTestException\n " +
133
130
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testCoroutineScope\$ 1\$ deferred\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:143)\n " +
134
131
" \t (Coroutine boundary)\n " +
135
- " \t at kotlinx.coroutines.DeferredCoroutine.await\$ suspendImpl(Builders.common.kt:99)\n " +
136
132
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.innerMethod(StackTraceRecoveryTest.kt:158)\n " +
137
133
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ outerScopedMethod\$ 2\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:193)\n " +
138
134
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ outerScopedMethod\$ 2.invokeSuspend(StackTraceRecoveryTest.kt:151)\n " +
@@ -231,7 +227,6 @@ class StackTraceRecoveryTest : TestBase() {
231
227
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.throws(StackTraceRecoveryTest.kt:280)\n " +
232
228
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ throws\$ 1.invokeSuspend(StackTraceRecoveryTest.kt)\n " +
233
229
" \t (Coroutine boundary)\n " +
234
- " \t at kotlinx.coroutines.DeferredCoroutine.await\$ suspendImpl(Builders.common.kt:99)\n " +
235
230
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest.awaiter(StackTraceRecoveryTest.kt:285)\n " +
236
231
" \t at kotlinx.coroutines.exceptions.StackTraceRecoveryTest\$ testNonDispatchedRecovery\$ await\$ 1.invokeSuspend(StackTraceRecoveryTest.kt:291)\n " +
237
232
" Caused by: kotlinx.coroutines.RecoverableTestException" )
0 commit comments