Testing is system dependent
Closed this issue · 1 comments
raphisuter commented
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");
}
}
raphisuter commented
Maybe this also fixes issue #22 ?