Skip to content

Commit 2b247e1

Browse files
committed
Add a comment
1 parent f9e486d commit 2b247e1

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
@@ -186,7 +186,7 @@ internal class TestScopeImpl(context: CoroutineContext) :
186186
finished = true
187187
uncaughtExceptions
188188
}
189-
val activeJobs = children.filter { it.isActive }.toList()
189+
val activeJobs = children.filter { it.isActive }.toList() // only non-empty if used with `runBlocking`
190190
if (exceptions.isEmpty()) {
191191
if (activeJobs.isNotEmpty())
192192
throw UncompletedCoroutinesError(

0 commit comments

Comments
 (0)