Skip to content

Commit ab67d7f

Browse files
committed
Polish
Signed-off-by: Violeta Georgieva <696661+violetagg@users.noreply.github.com>
1 parent c53e1bb commit ab67d7f

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

reactor-netty-http/src/test/java/reactor/netty/http/server/HttpServerOutboundCompleteTest.java

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -267,30 +267,30 @@ void httpPipeliningGetRespondsSendMono(boolean enableMetricsAndAccessLog) throws
267267

268268
Connection client =
269269
TcpClient.create()
270-
.port(disposableServer.port())
271-
.wiretap(true)
272-
.connectNow();
270+
.port(disposableServer.port())
271+
.wiretap(true)
272+
.connectNow();
273273

274274
int port = disposableServer.port();
275275
String address = HttpUtil.formatHostnameForHttp((InetSocketAddress) disposableServer.address()) + ":" + port;
276276
String request = repeatString("GET /%s HTTP/1.1\r\nHost: " + address + "\r\n\r\n");
277277
client.outbound()
278-
.sendObject(Unpooled.wrappedBuffer(request.getBytes(Charset.defaultCharset())))
279-
.then()
280-
.subscribe();
278+
.sendObject(Unpooled.wrappedBuffer(request.getBytes(Charset.defaultCharset())))
279+
.then()
280+
.subscribe();
281281

282282
CountDownLatch responses = new CountDownLatch(16);
283283
client.inbound()
284-
.receive()
285-
.asString()
286-
.doOnNext(s -> {
287-
int ind = 0;
288-
while ((ind = s.indexOf("200", ind)) != -1) {
289-
responses.countDown();
290-
ind += 3;
291-
}
292-
})
293-
.subscribe();
284+
.receive()
285+
.asString()
286+
.doOnNext(s -> {
287+
int ind = 0;
288+
while ((ind = s.indexOf("200", ind)) != -1) {
289+
responses.countDown();
290+
ind += 3;
291+
}
292+
})
293+
.subscribe();
294294

295295
assertThat(responses.await(5, TimeUnit.SECONDS)).isTrue();
296296

@@ -340,30 +340,30 @@ void httpPipeliningGetRespondsSendObject(boolean enableMetricsAndAccessLog) thro
340340

341341
Connection client =
342342
TcpClient.create()
343-
.port(disposableServer.port())
344-
.wiretap(true)
345-
.connectNow();
343+
.port(disposableServer.port())
344+
.wiretap(true)
345+
.connectNow();
346346

347347
int port = disposableServer.port();
348348
String address = HttpUtil.formatHostnameForHttp((InetSocketAddress) disposableServer.address()) + ":" + port;
349349
String request = repeatString("GET /%s HTTP/1.1\r\nHost: " + address + "\r\n\r\n");
350350
client.outbound()
351-
.sendObject(Unpooled.wrappedBuffer(request.getBytes(Charset.defaultCharset())))
352-
.then()
353-
.subscribe();
351+
.sendObject(Unpooled.wrappedBuffer(request.getBytes(Charset.defaultCharset())))
352+
.then()
353+
.subscribe();
354354

355355
CountDownLatch responses = new CountDownLatch(16);
356356
client.inbound()
357-
.receive()
358-
.asString()
359-
.doOnNext(s -> {
360-
int ind = 0;
361-
while ((ind = s.indexOf("200", ind)) != -1) {
362-
responses.countDown();
363-
ind += 3;
364-
}
365-
})
366-
.subscribe();
357+
.receive()
358+
.asString()
359+
.doOnNext(s -> {
360+
int ind = 0;
361+
while ((ind = s.indexOf("200", ind)) != -1) {
362+
responses.countDown();
363+
ind += 3;
364+
}
365+
})
366+
.subscribe();
367367

368368
assertThat(responses.await(5, TimeUnit.SECONDS)).isTrue();
369369

0 commit comments

Comments
 (0)