Fix another leak in HttpObjectAggregatorTest by removing redundant code
This commit is contained in:
parent
874a66c8fb
commit
738d3f77b9
@ -230,15 +230,6 @@ public class HttpObjectAggregatorTest {
|
|||||||
assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, response.getStatus());
|
assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, response.getStatus());
|
||||||
assertEquals("0", response.headers().get(Names.CONTENT_LENGTH));
|
assertEquals("0", response.headers().get(Names.CONTENT_LENGTH));
|
||||||
assertFalse(embedder.isOpen());
|
assertFalse(embedder.isOpen());
|
||||||
|
|
||||||
HttpContent chunk1 = new DefaultHttpContent(Unpooled.copiedBuffer("test", CharsetUtil.US_ASCII));
|
|
||||||
|
|
||||||
try {
|
|
||||||
embedder.writeInbound(chunk1);
|
|
||||||
fail();
|
|
||||||
} catch (Exception e) {
|
|
||||||
assertTrue(e instanceof ClosedChannelException);
|
|
||||||
}
|
|
||||||
assertFalse(embedder.finish());
|
assertFalse(embedder.finish());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user