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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • tests
    • 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

        1. BIGTOP-2549.1.patch
          14 kB
          Kengo Seki

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: