File tree 1 file changed +9
-1
lines changed
test/framework/src/main/java/org/opensearch/test
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,15 @@ protected static void checkStaticState(boolean afterClass) throws Exception {
639
639
try {
640
640
// ensure that there are no status logger messages which would indicate a problem with our Log4j usage; we map the
641
641
// StatusData instances to Strings as otherwise their toString output is useless
642
- assertThat (statusData .stream ().map (status -> status .getLevel () + ": " + status .getMessage () + (status .getThrowable () == null ? "" : "\r \n \r \n Trowable:\r \n " + status .getThrowable ().toString ())).collect (Collectors .joining ("\r \n " )),
642
+ assertThat (
643
+ statusData .stream ()
644
+ .map (
645
+ status -> status .getLevel ()
646
+ + ": "
647
+ + status .getMessage ()
648
+ + (status .getThrowable () == null ? "" : "\r \n \r \n Trowable:\r \n " + status .getThrowable ().toString ())
649
+ )
650
+ .collect (Collectors .joining ("\r \n " )),
643
651
statusData .stream ().map (status -> status .getMessage ().getFormattedMessage ()).collect (Collectors .toList ()),
644
652
empty ()
645
653
);
You can’t perform that action at this time.
0 commit comments