You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by vi...@apache.org on 2018/12/24 17:27:09 UTC
[drill] 03/03: DRILL-6920: Fix TestClient.testBasics() yarn test
failure
This is an automated email from the ASF dual-hosted git repository.
vitalii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill.git
commit 3e2d6192fc346fe63342021e5d19c7921d6c59dd
Author: Volodymyr Vysotskyi <vv...@gmail.com>
AuthorDate: Fri Dec 21 14:37:45 2018 +0200
DRILL-6920: Fix TestClient.testBasics() yarn test failure
closes #1582
---
.../test/java/org/apache/drill/yarn/client/TestClient.java | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/drill-yarn/src/test/java/org/apache/drill/yarn/client/TestClient.java b/drill-yarn/src/test/java/org/apache/drill/yarn/client/TestClient.java
index 73f1b00..8be3148 100644
--- a/drill-yarn/src/test/java/org/apache/drill/yarn/client/TestClient.java
+++ b/drill-yarn/src/test/java/org/apache/drill/yarn/client/TestClient.java
@@ -105,6 +105,7 @@ public class TestClient {
} catch (SimulatedExitException e) {
assert (e.exitCode == -1);
assertTrue(TestContext.getOut().contains("Usage: "));
+ TestContext.resetOutput();
}
// Bogus command
@@ -115,16 +116,7 @@ public class TestClient {
} catch (SimulatedExitException e) {
assert (e.exitCode == -1);
assertTrue(TestContext.getOut().contains("Usage: "));
- }
-
- // Help command
-
- try {
- DrillOnYarn.run(new String[] { "help" });
- fail();
- } catch (SimulatedExitException e) {
- assert (e.exitCode == -1);
- assertTrue(TestContext.getOut().contains("Usage: "));
+ TestContext.resetOutput();
}
}