In this changeset we fix an issue with testing. When using the listener for cache invalidation it results into the database lock used by the pool that is acquired twice. Once when calling Pool.init ; once when the transaction is started which calls Cache.sync which in turn calls Pool.refresh and finaly Pool.stop. It tries to acquire again the re-entrant lock (but it cannot because it's another thread). Closes #12457
trytond ======= The server of Tryton. Tryton is business software, ideal for companies of any size, easy to use, complete and 100% Open Source. It provides modularity, scalability and security.