HDFS-12898. Ozone: TestSCMCli#testHelp and TestSCMCli#testNonExistCommand fail consistently. Contributed by Shashikant Banerjee.
This commit is contained in:
parent
207523915d
commit
11473b8204
|
@ -329,7 +329,7 @@ public void testNonExistCommand() throws Exception {
|
||||||
assertTrue(errContent.toString()
|
assertTrue(errContent.toString()
|
||||||
.contains("Unrecognized options:[-nothingUseful]"));
|
.contains("Unrecognized options:[-nothingUseful]"));
|
||||||
String expectedOut =
|
String expectedOut =
|
||||||
"usage: hdfs scm <commands> [<options>]\n" +
|
"usage: hdfs scmcli <commands> [<options>]\n" +
|
||||||
"where <commands> can be one of the following\n" +
|
"where <commands> can be one of the following\n" +
|
||||||
" -container Container related options\n";
|
" -container Container related options\n";
|
||||||
assertEquals(expectedOut, testContent.toString());
|
assertEquals(expectedOut, testContent.toString());
|
||||||
|
@ -470,7 +470,7 @@ public void testHelp() throws Exception {
|
||||||
String[] args = {"-help"};
|
String[] args = {"-help"};
|
||||||
assertEquals(ResultCode.SUCCESS, cli.run(args));
|
assertEquals(ResultCode.SUCCESS, cli.run(args));
|
||||||
String expected =
|
String expected =
|
||||||
"usage: hdfs scm <commands> [<options>]\n" +
|
"usage: hdfs scmcli <commands> [<options>]\n" +
|
||||||
"where <commands> can be one of the following\n" +
|
"where <commands> can be one of the following\n" +
|
||||||
" -container Container related options\n";
|
" -container Container related options\n";
|
||||||
assertEquals(expected, testContent.toString());
|
assertEquals(expected, testContent.toString());
|
||||||
|
|
Loading…
Reference in New Issue