From 36af7bbde9b71c344ec27135205cb5b90f4c127e Mon Sep 17 00:00:00 2001 From: cdk Date: Sun, 27 Aug 2023 13:10:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC9=E7=AB=A0=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=B3=A8=E9=87=8A=E7=BA=A0=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/nia/test/chapter9/FrameChunkDecoderTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter9/src/test/java/nia/test/chapter9/FrameChunkDecoderTest.java b/chapter9/src/test/java/nia/test/chapter9/FrameChunkDecoderTest.java index 48bb4c28..67f3795f 100644 --- a/chapter9/src/test/java/nia/test/chapter9/FrameChunkDecoderTest.java +++ b/chapter9/src/test/java/nia/test/chapter9/FrameChunkDecoderTest.java @@ -26,7 +26,7 @@ public void testFramesDecoded() { } ByteBuf input = buf.duplicate(); - //创建一个 EmbeddedChannel,并向其安装一个帧大小为 3 字节的 FixedLengthFrameDecoder + //创建一个 EmbeddedChannel,并向其安装一个帧大小为 3 字节的 FrameChunkDecoder EmbeddedChannel channel = new EmbeddedChannel( new FrameChunkDecoder(3)); @@ -40,7 +40,7 @@ public void testFramesDecoded() { } catch (TooLongFrameException e) { // expected exception } - //写入剩余的2字节,并断言将会产生一个有效帧 + //写入剩余的 3 字节,并断言将会产生一个有效帧 assertTrue(channel.writeInbound(input.readBytes(3))); //将该 Channel 标记为已完成状态 assertTrue(channel.finish());