HDFS-13648. Fix TestGetConf#testGetJournalNodes on Windows due to a mismatch line separator. Contributed by Giovanni Matteo Fumarola.
This commit is contained in:
parent
e308ac88d3
commit
8f83b9abf9
@ -388,7 +388,7 @@ public void testGetJournalNodes() throws Exception {
|
||||
}
|
||||
buffer.append(val);
|
||||
}
|
||||
buffer.append("\n");
|
||||
buffer.append(System.lineSeparator());
|
||||
expected1 = buffer.toString();
|
||||
|
||||
Set<String> actual = DFSUtil.getJournalNodeAddresses(conf);
|
||||
@ -462,7 +462,7 @@ public void testGetJournalNodes() throws Exception {
|
||||
actual = DFSUtil.getJournalNodeAddresses(conf);
|
||||
assertEquals(expected.toString(), actual.toString());
|
||||
|
||||
actual1 = "\n";
|
||||
actual1 = System.lineSeparator();
|
||||
expected1 = getAddressListFromTool(TestType.JOURNALNODE,
|
||||
conf, true);
|
||||
assertEquals(expected1, actual1);
|
||||
@ -479,7 +479,7 @@ public void testGetJournalNodes() throws Exception {
|
||||
|
||||
expected1 = getAddressListFromTool(TestType.JOURNALNODE,
|
||||
conf, true);
|
||||
actual1 = "\n";
|
||||
actual1 = System.lineSeparator();
|
||||
assertEquals(expected1, actual1);
|
||||
conf.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user