Skip to content

Commit c7ce931

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent d89e441 commit c7ce931

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

server/src/test/java/org/elasticsearch/transport/TransportLoggerTests.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ public void testLoggingHandler() throws IOException {
6767
}
6868

6969
public void testLoggingHandlerWithExceptionMessage() {
70-
final String readPattern = ".*\\[length: \\d+"
71-
+ ", request id: \\d+"
72-
+ ", type: request"
73-
+ ", version: .*"
74-
+ " READ: \\d+B";
70+
final String readPattern = ".*\\[length: \\d+" + ", request id: \\d+" + ", type: request" + ", version: .*" + " READ: \\d+B";
7571

7672
final MockLog.LoggingExpectation readExpectation = new MockLog.PatternSeenEventExpectation(
7773
"spatial stats request",
@@ -80,12 +76,10 @@ public void testLoggingHandlerWithExceptionMessage() {
8076
readPattern
8177
);
8278

83-
InboundMessage inboundMessage = new InboundMessage(new Header(
84-
0,
85-
0,
86-
TransportStatus.setRequest((byte) 0),
87-
TransportVersion.current()
88-
), new ActionNotFoundTransportException("cluster:monitor/xpack/spatial/stats"));
79+
InboundMessage inboundMessage = new InboundMessage(
80+
new Header(0, 0, TransportStatus.setRequest((byte) 0), TransportVersion.current()),
81+
new ActionNotFoundTransportException("cluster:monitor/xpack/spatial/stats")
82+
);
8983

9084
try (var mockLog = MockLog.capture(TransportLogger.class)) {
9185
mockLog.addExpectation(readExpectation);

0 commit comments

Comments
 (0)