diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java index 80f39b8f90..24256a0147 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestLogsCLI.java @@ -167,19 +167,6 @@ public void testInvalidOpts() throws Exception { "options parsing failed: Unrecognized option: -InvalidOpts")); } - @Test(timeout = 5000l) - public void testInvalidApplicationId() throws Exception { - YarnClient mockYarnClient = createMockYarnClient( - YarnApplicationState.FINISHED, - UserGroupInformation.getCurrentUser().getShortUserName()); - LogsCLI cli = new LogsCLIForTest(mockYarnClient); - cli.setConf(conf); - - int exitCode = cli.run( new String[] { "-applicationId", "not_an_app_id"}); - assertTrue(exitCode == -1); - assertTrue(sysErrStream.toString().startsWith("Invalid ApplicationId specified")); - } - @Test(timeout = 5000L) public void testInvalidAMContainerId() throws Exception { conf.setBoolean(YarnConfiguration.APPLICATION_HISTORY_ENABLED, true);