From e641681d3ac4491daa06cd1ff9b174ef8b3b4c94 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 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..cb184e265db 100644 --- a/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt +++ b/ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt @@ -16,7 +16,7 @@ import kotlin.test.Test class ByteBufferChannelTest { @get:Rule - public val timeoutRule: CoroutinesTimeout by lazy { CoroutinesTimeout.seconds(60) } + ublic val timeoutRule: CoroutinesTimeout by lazy { CoroutinesTimeout.seconds(60) } @Test fun testCompleteExceptionallyJob() { @@ -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() } }