Remove test that no longer makes sense because it relied on being able to change buffer byte order

This commit is contained in:
Chris Vest 2021-09-01 11:20:24 +02:00
parent 6413143811
commit 956724fbc1

View File

@ -447,18 +447,6 @@ public class ByteToMessageDecoderTest {
}
}
@Test
public void releaseWhenCompositeCumulateThrows() {
Buffer in = onHeapUnpooled().allocate(12).writerOffset(12);
try (Buffer cumulation = compose(onHeapUnpooled(), onHeapUnpooled().allocate(1).writeByte((byte) 0).send())) {
ByteToMessageDecoder.COMPOSITE_CUMULATOR.cumulate(onHeapUnpooled(), cumulation, in);
fail();
} catch (IllegalArgumentException expected) {
assertThat(expected).hasMessageContaining("byte order");
assertFalse(in.isAccessible());
}
}
@Test
public void testDoesNotOverRead() {
class ReadInterceptingHandler implements ChannelHandler {