This is an automated email from the ASF dual-hosted git repository.
jsweeney pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 32e6df22547 SOLR-16608: Fixing replacement of line ending in test to
be OS agnostic (#1409)
32e6df22547 is described below
commit 32e6df225476f8523e1e5e9c3bff9406c2625336
Author: Justin Sweeney <[email protected]>
AuthorDate: Tue Feb 28 17:52:24 2023 -0700
SOLR-16608: Fixing replacement of line ending in test to be OS agnostic
(#1409)
---
solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
index 1ba4fde8caa..bcacb569a4f 100644
--- a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java
@@ -445,7 +445,7 @@ public class ZkCLITest extends SolrTestCaseJ4 {
ZkCLI.main(args);
assertArrayEquals(
data,
- StringUtils.removeEnd(systemOut.toString(StandardCharsets.UTF_8), "\n")
+ StringUtils.removeEnd(systemOut.toString(StandardCharsets.UTF_8),
System.lineSeparator())
.getBytes(StandardCharsets.UTF_8));
}
@@ -464,7 +464,7 @@ public class ZkCLITest extends SolrTestCaseJ4 {
ZkCLI.main(args);
assertArrayEquals(
data,
- StringUtils.removeEnd(systemOut.toString(StandardCharsets.UTF_8), "\n")
+ StringUtils.removeEnd(systemOut.toString(StandardCharsets.UTF_8),
System.lineSeparator())
.getBytes(StandardCharsets.UTF_8));
}