[JIRA] Created: (CAY-780) Unit tests - test connections are not closed if an error happens in schema setup, leading in unpredictbale behavior in the following tests

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Sun Apr 22 2007 - 11:44:44 EDT

  • Next message: Andrus Adamchik: "MySQL FK constraints"

    Unit tests - test connections are not closed if an error happens in schema setup, leading in unpredictbale behavior in the following tests
    ------------------------------------------------------------------------------------------------------------------------------------------

                     Key: CAY-780
                     URL: https://issues.apache.org/cayenne/browse/CAY-780
                 Project: Cayenne
              Issue Type: Bug
              Components: Cayenne Core Library
        Affects Versions: 3.0
                Reporter: Andrus Adamchik
             Assigned To: Andrus Adamchik
                Priority: Minor
                 Fix For: 3.0

    Static test DataSource built for the unit tests is not reset if an error occurs building schema. Ideally this shouldn't matter, but since the failing procedure is invoked over and over again for each individual test (as a result of the previous failure), open connections pile up resulting eventually in some DB errors that mask the actual failure cause. Need to handle it more gracefully.

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sun Apr 22 2007 - 11:45:21 EDT