1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-13 10:50:30 +00:00

Normalise line endings in the SanitisedError test

We could use the system line ending when printing the message, but this
is fine too.
This commit is contained in:
Jonathan Coates 2023-05-25 09:49:40 +01:00
parent ebed357f05
commit 842eb67e17
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -22,7 +22,7 @@ class SanitisedErrorTest {
try (var printWriter = new PrintWriter(writer)) {
t.printStackTrace(printWriter);
}
var actualOutput = writer.toString();
var actualOutput = writer.toString().replace("\r\n", "\n");
assertEquals(actualOutput, truncatedOutput);
}