Skip to content

Commit

Permalink
[Core] fix for DefaultSummaryPrinterTest on Windows (#1957)
Browse files Browse the repository at this point in the history
Fix for the test DefaultSummaryPrinterTest which assumed LF only line endings but fails on Windows
  • Loading branch information
dmarteinson committed Apr 23, 2020
1 parent 3d70cf8 commit ddbaf13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import static java.nio.charset.StandardCharsets.UTF_8;
import static java.time.Instant.ofEpochSecond;
import static java.util.Collections.singletonList;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.text.IsEqualCompressingWhiteSpace.equalToCompressingWhiteSpace;

class DefaultSummaryPrinterTest {

Expand Down Expand Up @@ -55,7 +55,7 @@ void does_not_print_duplicate_snippets() {
bus.getInstant()
));

assertThat(new String(out.toByteArray(), UTF_8), is("" +
assertThat(new String(out.toByteArray(), UTF_8), equalToCompressingWhiteSpace("" +
"\n" +
"0 Scenarios\n" +
"0 Steps\n" +
Expand Down

0 comments on commit ddbaf13

Please sign in to comment.