Fixed a bug where DuplicateChannelBufferTest doesn't test DuplicateChannelBuffer
This commit is contained in:
parent
57551914af
commit
48929afd60
@ -33,7 +33,7 @@ public class DuplicateChannelBufferTest extends AbstractChannelBufferTest {
|
||||
|
||||
@Override
|
||||
protected ChannelBuffer newBuffer(int length) {
|
||||
buffer = ChannelBuffers.buffer(length).duplicate();
|
||||
buffer = new DuplicatedChannelBuffer(ChannelBuffers.buffer(length));
|
||||
assertEquals(0, buffer.writerIndex());
|
||||
return buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user