Fix testcase introduced by a2bd9a4
This commit is contained in:
parent
14ea69cdc1
commit
82a43727c3
@ -47,8 +47,7 @@ public class UnixChannelUtilTest {
|
||||
private static void testIsBufferCopyNeededForWrite(ByteBufAllocator alloc) {
|
||||
ByteBuf byteBuf = alloc.directBuffer();
|
||||
assertFalse(isBufferCopyNeededForWrite(byteBuf));
|
||||
assertTrue(isBufferCopyNeededForWrite(byteBuf.asReadOnly()));
|
||||
|
||||
assertFalse(isBufferCopyNeededForWrite(byteBuf.asReadOnly()));
|
||||
assertTrue(byteBuf.release());
|
||||
|
||||
byteBuf = alloc.heapBuffer();
|
||||
@ -56,7 +55,7 @@ public class UnixChannelUtilTest {
|
||||
assertTrue(isBufferCopyNeededForWrite(byteBuf.asReadOnly()));
|
||||
assertTrue(byteBuf.release());
|
||||
|
||||
assertCompositeByteBufIsBufferCopyNeededForWrite(alloc, 2, 0, false);
|
||||
assertCompositeByteBufIsBufferCopyNeededForWrite(alloc, 2, 0, true);
|
||||
assertCompositeByteBufIsBufferCopyNeededForWrite(alloc, IOV_MAX + 1, 0, true);
|
||||
assertCompositeByteBufIsBufferCopyNeededForWrite(alloc, 0, 2, true);
|
||||
assertCompositeByteBufIsBufferCopyNeededForWrite(alloc, 1, 1, true);
|
||||
|
Loading…
Reference in New Issue
Block a user