You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2018/12/21 13:39:00 UTC
[jira] [Updated] (DRILL-6920) Fix TestClient.testBasics() yarn test
failure
[ https://issues.apache.org/jira/browse/DRILL-6920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arina Ielchiieva updated DRILL-6920:
------------------------------------
Reviewer: Vitalii Diravka
> Fix TestClient.testBasics() yarn test failure
> ---------------------------------------------
>
> Key: DRILL-6920
> URL: https://issues.apache.org/jira/browse/DRILL-6920
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.15.0
> Reporter: Volodymyr Vysotskyi
> Assignee: Volodymyr Vysotskyi
> Priority: Blocker
> Fix For: 1.15.0
>
>
> {{TestClient.testBasics()}} test checks error messages for the case of usage non-existent commands. But it contains block for help command which exists in yarn and supported by Drill (see {{CommandLineOptions.Command}} enum).
> This test shares the same {{TestContext}} instance for all the tests, but for some envs, {{TestContext.getOut()}} may return the result of the execution of previous block. So for some systems this test passes and for other may fail.
> The solution is to add {{TestContext.resetOutput()}} calls for every test block and remove block with {{help}} command since it contradicts test javadoc.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)