Skip to content

Commit 298419f

Browse files
authored
Fix the error message if there were uncaught exceptions before test (#3733)
With #3449, the unrelated uncaught exceptions can also be caught in this manner.
1 parent d6f1403 commit 298419f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-test/common/src/TestScope.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ internal fun TestScope.asSpecificImplementation(): TestScopeImpl = when (this) {
312312
}
313313

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

0 commit comments

Comments
 (0)