YARN-9453. Clean up code long if-else chain in ApplicationCLI#run. Contributed by Wanqiang Ji.
This commit is contained in:
parent
29ff7fb140
commit
206e633946
File diff suppressed because it is too large
Load Diff
|
@ -2027,8 +2027,7 @@ public class TestYarnCLI {
|
|||
@Test
|
||||
public void testFailApplicationAttempt() throws Exception {
|
||||
ApplicationCLI cli = createAndGetAppCLI();
|
||||
int exitCode =
|
||||
cli.run(new String[] { "applicationattempt", "-fail",
|
||||
int exitCode = cli.run(new String[] {"applicationattempt", "-fail",
|
||||
"appattempt_1444199730803_0003_000001"});
|
||||
Assert.assertEquals(0, exitCode);
|
||||
|
||||
|
|
Loading…
Reference in New Issue