Intermittent DBConnection.ConnectionError in tests

I’ve tried updating my tests to follow this pattern, but I’m still getting those errors.