Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1172

TestQueryServiceDuplicate failing in tearDown

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.6
    • test
    • None

    Description

      The test class has an AfterMethod tearDown method, which drops a table and closes a session. But the session and the table don't get created until the test method of this class is run. Furthermore, this test depends on other test groups. So if any of the tests of those groups fail, the tests of this class won't be run. But the tearDown will still be run since setUp was run too.

      Proposed fix is to drop the table and close the session in the test method itself.

      Attachments

        1. LENS-1172.04.patch
          3 kB
          Rajat Khandelwal
        2. LENS-1172.03.patch
          2 kB
          Rajat Khandelwal
        3. LENS-1172.02.patch
          3 kB
          Rajat Khandelwal
        4. LENS-1172.01.patch
          3 kB
          Rajat Khandelwal

        Issue Links

          Activity

            People

              prongs Rajat Khandelwal
              prongs Rajat Khandelwal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: