Fix another leak in HttpObjectAggregatorTest by removing redundant code

This commit is contained in:
Trustin Lee 2014-02-20 14:30:25 -08:00
parent 874a66c8fb
commit 738d3f77b9

View File

@ -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());
} }