Skip to content

Commit b825221

Browse files
committed
fixup
1 parent bc6bd8b commit b825221

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ public fun TestScope.runTest(
341341
if (exception is TimeoutCancellationException) {
342342
dumpCoroutines()
343343
val activeChildren = scope.children.filter(Job::isActive).toList()
344-
var message = "After waiting for $timeout, "
345-
message += when {
344+
val message = "After waiting for $timeout, " + when {
346345
testBodyFinished.value && activeChildren.isNotEmpty() ->
347346
"there were active child jobs: $activeChildren. " +
348347
"Use `TestScope.backgroundScope` " +

0 commit comments

Comments
 (0)