From 1ca5c2de15e2bca54126bb40361bc1bbc39e7dec Mon Sep 17 00:00:00 2001 From: Leonid Stashevsky Date: Mon, 5 Dec 2022 09:39:17 +0100 Subject: [PATCH] Fix style --- ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt b/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt index b4639063367..3d9fa336ebf 100644 --- a/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt +++ b/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt @@ -63,7 +63,7 @@ class ByteBufferChannelTest { @Test fun testReadUtf8LineEOF() = testSuspend { - (1..20000).forEach { num -> + repeat((1..20000).count()) { val channel = ByteChannel(true) val writer = launch(Dispatchers.IO) { channel.writeFully("1\n".toByteArray()) @@ -79,7 +79,7 @@ class ByteBufferChannelTest { lines } - val readerResult = reader.await() + reader.await() writer.join() } }