|
@@ -2829,11 +2829,11 @@ public class TestDFSShell {
|
|
|
System.setErr(origErr);
|
|
|
}
|
|
|
|
|
|
- assertEquals("Error message is not the expected error message",
|
|
|
- "setrep: Requested replication factor of 1 is less than "
|
|
|
- + "the required minimum of 2 for /tmp/TestDFSShell-"
|
|
|
- + "testSetrepLow/testFileForSetrepLow\n",
|
|
|
- bao.toString());
|
|
|
+ assertTrue("Error message is not the expected error message"
|
|
|
+ + bao.toString(), bao.toString().startsWith(
|
|
|
+ "setrep: Requested replication factor of 1 is less than "
|
|
|
+ + "the required minimum of 2 for /tmp/TestDFSShell-"
|
|
|
+ + "testSetrepLow/testFileForSetrepLow"));
|
|
|
} finally {
|
|
|
shell.close();
|
|
|
cluster.shutdown();
|