Skip to content

Commit

Permalink
[FLINK-1436] fix missing checks in CliFrontendInfoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
mxm committed Feb 13, 2015
1 parent 988602b commit 2121185
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ public void testErrorCases() {
@Test
public void testShowExecutionPlan() {
try {
String[] parameters = {"-e", CliFrontendTestUtils.getTestJarPath()};
String[] parameters = {CliFrontendTestUtils.getTestJarPath()};
InfoTestCliFrontend testFrontend = new InfoTestCliFrontend(-1);
testFrontend.info(parameters);
int retCode = testFrontend.info(parameters);
assertTrue(retCode == 0);
}
catch (Exception e) {
System.err.println(e.getMessage());
Expand All @@ -86,9 +87,10 @@ public void testShowExecutionPlan() {
@Test
public void testShowExecutionPlanWithParallelism() {
try {
String[] parameters = {"-e", "-p", "17", CliFrontendTestUtils.getTestJarPath()};
String[] parameters = {"-p", "17", CliFrontendTestUtils.getTestJarPath()};
InfoTestCliFrontend testFrontend = new InfoTestCliFrontend(17);
testFrontend.info(parameters);
int retCode = testFrontend.info(parameters);
assertTrue(retCode == 0);
}
catch (Exception e) {
System.err.println(e.getMessage());
Expand Down

0 comments on commit 2121185

Please sign in to comment.