Skip to content

Commit

Permalink
Replace deprecated readBytes with readByteArray
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Dec 16, 2024
1 parent 81882d9 commit 467e5e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import io.ktor.util.*
import io.ktor.utils.io.*
import io.ktor.utils.io.core.*
import kotlinx.coroutines.runBlocking
import kotlinx.io.readByteArray
import kotlinx.serialization.json.*
import org.junit.jupiter.api.Assumptions.assumeTrue
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -383,7 +384,7 @@ public actual abstract class SigningSuiteTestBase : HasSigner {
}

if (hasBody) {
val bytes = runBlocking { chan.readRemaining().readBytes() }
val bytes = runBlocking { chan.readRemaining().readByteArray() }
builder.body = HttpBody.fromBytes(bytes)
}

Expand Down

0 comments on commit 467e5e4

Please sign in to comment.