Closed laceysanderson closed 1 year ago
It turns out this was only happening if a test failed within the helper function runPrepareStepAssertions(). It was due to passing a connection object as a parameter to the helper function during testing 🙈 Switching to instead pass the schema name and then re-setup the connection fixed the bug.
We are currently seeing a LogicException regarding the database connection when tests fail. Specifically, you will see the following error:
This was first discovered in the Type Field PR (see output at the bottom). I confirmed the test was simply failing and had nothing to do with a database connection by isolating the exact assertion which was causing the failure. When I forced that assertion to pass (i.e.. replaced variables with static numbers which were equal) I found the logic exception went away.
Me + Stephen suspect that this may be due to initializing the chado database connection as a property in our Chado Test Base class.