Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2549

"Expected" and "actual" values are mistakenly switched in some JUnit method invocation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.2.0
    • Component/s: tests
    • Labels:
      None

      Description

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

      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)
      

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

        Attachments

          Activity

            People

            • Assignee:
              sekikn Kengo Seki
              Reporter:
              sekikn Kengo Seki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: