HDFS-13591. TestDFSShell#testSetrepLow fails on Windows. Contributed by Anbang Hu.
This commit is contained in:
parent
91d7c74e6a
commit
9dbf4f0166
|
@ -2829,11 +2829,11 @@ public class TestDFSShell {
|
||||||
System.setErr(origErr);
|
System.setErr(origErr);
|
||||||
}
|
}
|
||||||
|
|
||||||
assertEquals("Error message is not the expected error message",
|
assertTrue("Error message is not the expected error message"
|
||||||
"setrep: Requested replication factor of 1 is less than "
|
+ bao.toString(), bao.toString().startsWith(
|
||||||
+ "the required minimum of 2 for /tmp/TestDFSShell-"
|
"setrep: Requested replication factor of 1 is less than "
|
||||||
+ "testSetrepLow/testFileForSetrepLow\n",
|
+ "the required minimum of 2 for /tmp/TestDFSShell-"
|
||||||
bao.toString());
|
+ "testSetrepLow/testFileForSetrepLow"));
|
||||||
} finally {
|
} finally {
|
||||||
shell.close();
|
shell.close();
|
||||||
cluster.shutdown();
|
cluster.shutdown();
|
||||||
|
|
Loading…
Reference in New Issue