Skip to content

Commit 467e5e4

Browse files
committed
Replace deprecated readBytes with readByteArray
1 parent 81882d9 commit 467e5e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/auth/aws-signing-tests/jvm/src/aws/smithy/kotlin/runtime/auth/awssigning/tests/SigningSuiteTestBaseJVM.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import io.ktor.util.*
2828
import io.ktor.utils.io.*
2929
import io.ktor.utils.io.core.*
3030
import kotlinx.coroutines.runBlocking
31+
import kotlinx.io.readByteArray
3132
import kotlinx.serialization.json.*
3233
import org.junit.jupiter.api.Assumptions.assumeTrue
3334
import org.junit.jupiter.api.Test
@@ -383,7 +384,7 @@ public actual abstract class SigningSuiteTestBase : HasSigner {
383384
}
384385

385386
if (hasBody) {
386-
val bytes = runBlocking { chan.readRemaining().readBytes() }
387+
val bytes = runBlocking { chan.readRemaining().readByteArray() }
387388
builder.body = HttpBody.fromBytes(bytes)
388389
}
389390

0 commit comments

Comments
 (0)