SumoLogic/sumologic-log4j2-appender

Testing is system dependent

Closed this issue · 1 comments

inside the test class SumoLogicAppenderTest.testMessagesWithMetadata on line 81 the linux line separator is hardcoded. If you run the tests in windows, the test will fail.

  for(MaterializedHttpRequest request: handler.getExchanges()) {
            for (String line : request.getBody().split("\n")) {
                // Strip timestamp
                int mainStart = line.indexOf("[main]");
                String trimmed = line.substring(mainStart);
                actual.append(trimmed + "\n");
            }
        }

Maybe this also fixes issue #22 ?