Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10912

setUp / tearDown in TestSCVFWithMiniCluster should be done once per run

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0, 0.98.2
    • None
    • None
    • Reviewed

    Description

      setUp / tearDown should be annotated with @BeforeClass and @AfterClass, respectively.

      On my Mac, the runtime for this test went from 19 seconds to 9 seconds:

      Running org.apache.hadoop.hbase.regionserver.TestSCVFWithMiniCluster
      Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.302 sec
      

      Attachments

        1. 10912-v2.txt
          2 kB
          Ted Yu
        2. 10912-v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: