Less verbose output in testGuideBasicExample05 (100k dots were printed)
diff --git a/kotlinx-coroutines-core/src/test/kotlin/guide/test/TestUtil.kt b/kotlinx-coroutines-core/src/test/kotlin/guide/test/TestUtil.kt
index f735d49..ab33444 100644
--- a/kotlinx-coroutines-core/src/test/kotlin/guide/test/TestUtil.kt
+++ b/kotlinx-coroutines-core/src/test/kotlin/guide/test/TestUtil.kt
@@ -54,7 +54,13 @@
}
val lines = ByteArrayInputStream(bytes).bufferedReader().readLines()
- lines.forEach { println(it) }
+ lines.forEach {
+ val limit = 80
+ if (it.length < limit)
+ println(it)
+ else
+ println(it.substring(0, limit) + " (${it.length} chars)")
+ }
return lines
}