Use default allocator in testDecodeFragmented

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent 76977303b2
commit e08f355e6f
  1. 3
      protocol/src/test/kotlin/org/openrs2/protocol/js5/Js5ResponseDecoderTest.kt

@ -1,6 +1,7 @@
package org.openrs2.protocol.js5
import io.netty.buffer.ByteBuf
import io.netty.buffer.ByteBufAllocator
import io.netty.buffer.Unpooled
import io.netty.channel.embedded.EmbeddedChannel
import io.netty.handler.codec.DecoderException
@ -40,7 +41,7 @@ object Js5ResponseDecoderTest {
channel.writeInbound(wrappedBuffer(7, 'O'.toByte(), 'p'.toByte(), 'e'.toByte(), 'n'.toByte()))
channel.writeInbound(wrappedBuffer('R'.toByte(), 'S'.toByte(), '2'.toByte()))
Unpooled.buffer().use { buf ->
ByteBufAllocator.DEFAULT.buffer().use { buf ->
buf.writeByte(0)
buf.writeInt(7)
buf.writeCharSequence("OpenRS2", Charsets.UTF_8)

Loading…
Cancel
Save