Skip to content

Commit d7275d0

Browse files
rsinukov1e5l
authored andcommitted
KTOR-2603 Remove IOBuffer usages (ktorio#2438)
1 parent 3532b34 commit d7275d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ktor-io/jvm/test/io/ktor/utils/io/JvmByteChannelCloseTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package io.ktor.utils.io
66

77
import io.ktor.utils.io.core.*
88
import kotlinx.coroutines.channels.*
9+
import io.ktor.utils.io.core.internal.*
910

1011
class JvmReadPacketWithExceptionByteChannelCloseTest : ByteChannelCloseTest(
1112
ClosedReceiveChannelException::class,
@@ -19,7 +20,7 @@ class JvmSequentialReadPacketWithExceptionByteChannelCloseTest : ByteChannelClos
1920
{ readPacket(Int.MAX_VALUE) }
2021
) {
2122
override fun ByteChannel(autoFlush: Boolean): ByteChannel {
22-
return ByteChannelSequentialJVM(IoBuffer.Empty, autoFlush)
23+
return ByteChannelSequentialJVM(ChunkBuffer.Empty, autoFlush)
2324
}
2425
}
2526

@@ -35,6 +36,6 @@ class JvmSequentialReadFullyWithExceptionByteChannelCloseTest : ByteChannelClose
3536
{ readFully(ByteArray(10)) }
3637
) {
3738
override fun ByteChannel(autoFlush: Boolean): ByteChannel {
38-
return ByteChannelSequentialJVM(IoBuffer.Empty, autoFlush)
39+
return ByteChannelSequentialJVM(ChunkBuffer.Empty, autoFlush)
3940
}
4041
}

0 commit comments

Comments
 (0)