Skip to content

Commit

Permalink
Fix the error message if there were uncaught exceptions before test (#…
Browse files Browse the repository at this point in the history
…3733)

With #3449, the unrelated uncaught exceptions can also be caught in
this manner.
  • Loading branch information
dkhalanskyjb committed May 3, 2023
1 parent d6f1403 commit 298419f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlinx-coroutines-test/common/src/TestScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ internal fun TestScope.asSpecificImplementation(): TestScopeImpl = when (this) {
}

internal class UncaughtExceptionsBeforeTest : IllegalStateException(
"There were uncaught exceptions in coroutines launched from TestScope before the test started. Please avoid this," +
"There were uncaught exceptions before the test started. Please avoid this," +
" as such exceptions are also reported in a platform-dependent manner so that they are not lost."
)

Expand Down

0 comments on commit 298419f

Please sign in to comment.