Fix test failures

This commit is contained in:
Trustin Lee 2013-03-12 14:43:38 +09:00
parent e1dd149ca6
commit 6e0e38f09f

View File

@ -37,7 +37,7 @@ public class HttpInvalidMessageTest {
HttpRequest req = (HttpRequest) ch.readInbound();
DecoderResult dr = req.getDecoderResult();
assertFalse(dr.isSuccess());
assertFalse(dr.isFailure());
assertTrue(dr.isFailure());
ensureInboundTrafficDiscarded(ch);
}
@ -64,7 +64,7 @@ public class HttpInvalidMessageTest {
HttpResponse res = (HttpResponse) ch.readInbound();
DecoderResult dr = res.getDecoderResult();
assertFalse(dr.isSuccess());
assertFalse(dr.isFailure());
assertTrue(dr.isFailure());
ensureInboundTrafficDiscarded(ch);
}
@ -97,7 +97,7 @@ public class HttpInvalidMessageTest {
HttpContent chunk = (HttpContent) ch.readInbound();
DecoderResult dr = chunk.getDecoderResult();
assertFalse(dr.isSuccess());
assertFalse(dr.isFailure());
assertTrue(dr.isFailure());
ensureInboundTrafficDiscarded(ch);
}