Fix line length
This commit is contained in:
parent
9e80e290d6
commit
79a1629f74
|
@ -148,7 +148,9 @@ public class Netty4HttpServerTransportTests extends ESTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that {@link Netty4HttpServerTransport} responds to a 100-continue expectation with too large a content-length with a 413 status.
|
* Test that {@link Netty4HttpServerTransport} responds to a
|
||||||
|
* 100-continue expectation with too large a content-length
|
||||||
|
* with a 413 status.
|
||||||
* @throws InterruptedException if the client communication with the server is interrupted
|
* @throws InterruptedException if the client communication with the server is interrupted
|
||||||
*/
|
*/
|
||||||
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/23172")
|
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/23172")
|
||||||
|
@ -198,7 +200,8 @@ public class Netty4HttpServerTransportTests extends ESTestCase {
|
||||||
final FullHttpResponse response = client.post(remoteAddress.address(), request);
|
final FullHttpResponse response = client.post(remoteAddress.address(), request);
|
||||||
assertThat(response.status(), equalTo(expectedStatus));
|
assertThat(response.status(), equalTo(expectedStatus));
|
||||||
if (expectedStatus.equals(HttpResponseStatus.CONTINUE)) {
|
if (expectedStatus.equals(HttpResponseStatus.CONTINUE)) {
|
||||||
final FullHttpRequest continuationRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/", Unpooled.EMPTY_BUFFER);
|
final FullHttpRequest continuationRequest =
|
||||||
|
new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.POST, "/", Unpooled.EMPTY_BUFFER);
|
||||||
final FullHttpResponse continuationResponse = client.post(remoteAddress.address(), continuationRequest);
|
final FullHttpResponse continuationResponse = client.post(remoteAddress.address(), continuationRequest);
|
||||||
|
|
||||||
assertThat(continuationResponse.status(), is(HttpResponseStatus.OK));
|
assertThat(continuationResponse.status(), is(HttpResponseStatus.OK));
|
||||||
|
|
Loading…
Reference in New Issue