Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Maurer committed Jun 28, 2014
1 parent db3c592 commit bebcf81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public void testBadRequest() {
ch.writeInbound(Unpooled.copiedBuffer("GET / HTTP/1.0 with extra\r\n", CharsetUtil.UTF_8));
Object inbound = ch.readInbound();
assertThat(inbound, is(instanceOf(FullHttpRequest.class)));
assertTrue(((FullHttpRequest) inbound).getDecoderResult().isFailure());
assertTrue(((FullHttpRequest) inbound).decoderResult().isFailure());
assertNull(ch.readInbound());
ch.finish();
}
Expand All @@ -319,7 +319,7 @@ public void testBadResponse() throws Exception {
ch.writeInbound(Unpooled.copiedBuffer("HTTP/1.0 BAD_CODE Bad Server\r\n", CharsetUtil.UTF_8));
Object inbound = ch.readInbound();
assertThat(inbound, is(instanceOf(FullHttpResponse.class)));
assertTrue(((FullHttpResponse) inbound).getDecoderResult().isFailure());
assertTrue(((FullHttpResponse) inbound).decoderResult().isFailure());
assertNull(ch.readInbound());
ch.finish();
}
Expand Down

0 comments on commit bebcf81

Please sign in to comment.