You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2016/10/06 03:55:21 UTC

[jira] [Created] (BIGTOP-2549) "Expected" and "actual" values are mistakenly switched in some JUnit method invocation

Kengo Seki created BIGTOP-2549:
----------------------------------

             Summary: "Expected" and "actual" values are mistakenly switched in some JUnit method invocation
                 Key: BIGTOP-2549
                 URL: https://issues.apache.org/jira/browse/BIGTOP-2549
             Project: Bigtop
          Issue Type: Bug
          Components: tests
            Reporter: Kengo Seki
            Priority: Minor


I ran hdfs smoke test, and got the following result:

{code}
org.apache.bigtop.itest.hadoop.hdfs.TestTextSnappy > testTextSnappy STANDARD_OUT
    hadoop fs -text testtextsnappy.1475725399538/part-00001.snappy
    Failed command: hadoop fs -text testtextsnappy.1475725399538/part-00001.snappy

(snip)

    Expected output:
    1	rafferty	31
    2	jones	33
    3	steinberg	33
    Actual output:


org.apache.bigtop.itest.hadoop.hdfs.TestTextSnappy > testTextSnappy FAILED
    org.junit.ComparisonFailure: Incorrect output expected:<[]> but was:<[1	rafferty	31
    2	jones	33
    3	steinberg	33]>
        at org.junit.Assert.assertEquals(Assert.java:115)

(snip)
{code}

"Expected" and "actual" outputs were swapped between the above two messages.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)