Fix another leak in HttpObjectAggregatorTest by removing redundant code
This commit is contained in:
parent
2e6918c21a
commit
ff8df41541
@ -230,15 +230,6 @@ public class HttpObjectAggregatorTest {
|
||||
assertEquals(HttpResponseStatus.REQUEST_ENTITY_TOO_LARGE, response.getStatus());
|
||||
assertEquals("0", response.headers().get(Names.CONTENT_LENGTH));
|
||||
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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user