Fix test failures
This commit is contained in:
parent
e1dd149ca6
commit
6e0e38f09f
@ -37,7 +37,7 @@ public class HttpInvalidMessageTest {
|
|||||||
HttpRequest req = (HttpRequest) ch.readInbound();
|
HttpRequest req = (HttpRequest) ch.readInbound();
|
||||||
DecoderResult dr = req.getDecoderResult();
|
DecoderResult dr = req.getDecoderResult();
|
||||||
assertFalse(dr.isSuccess());
|
assertFalse(dr.isSuccess());
|
||||||
assertFalse(dr.isFailure());
|
assertTrue(dr.isFailure());
|
||||||
ensureInboundTrafficDiscarded(ch);
|
ensureInboundTrafficDiscarded(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ public class HttpInvalidMessageTest {
|
|||||||
HttpResponse res = (HttpResponse) ch.readInbound();
|
HttpResponse res = (HttpResponse) ch.readInbound();
|
||||||
DecoderResult dr = res.getDecoderResult();
|
DecoderResult dr = res.getDecoderResult();
|
||||||
assertFalse(dr.isSuccess());
|
assertFalse(dr.isSuccess());
|
||||||
assertFalse(dr.isFailure());
|
assertTrue(dr.isFailure());
|
||||||
ensureInboundTrafficDiscarded(ch);
|
ensureInboundTrafficDiscarded(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ public class HttpInvalidMessageTest {
|
|||||||
HttpContent chunk = (HttpContent) ch.readInbound();
|
HttpContent chunk = (HttpContent) ch.readInbound();
|
||||||
DecoderResult dr = chunk.getDecoderResult();
|
DecoderResult dr = chunk.getDecoderResult();
|
||||||
assertFalse(dr.isSuccess());
|
assertFalse(dr.isSuccess());
|
||||||
assertFalse(dr.isFailure());
|
assertTrue(dr.isFailure());
|
||||||
ensureInboundTrafficDiscarded(ch);
|
ensureInboundTrafficDiscarded(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user