Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13574

harden tests that fail (usually NPE) during After/AfterClas methods if there is an assumption violation in Before/BeforeClass methods

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We have a bunch of tests that blindly try to call cleanup methods on objects w/o sanity checking if the object exists and the cleanup is actually neccessary – which may not be true, particularly there was an Assumption failure during a Before/BeforeClass method

        Attachments

        1. SOLR-13574.patch
          76 kB
          Chris M. Hostetter

          Issue Links

            Activity

              People

              • Assignee:
                hossman Chris M. Hostetter
                Reporter:
                hossman Chris M. Hostetter
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: