Behat/CommonContexts — pull request #13 by jakzal (2011-12-23 11:39:45+00:00)
Title: [SymfonyDoctrineContext] Fixed exceeding max connections limit

It caused random scenarios to fail with large scenario suites.

To fix the issue I'm closing client connections. They were being left in sleep state and cumulating until behat process was finished.

There are still some connections cumulating. Those are established by behat's entity manager and cannot be closed automatically as user might need to do some cleanups before.