mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-22 04:34:28 +03:00
db95b75515
When running unit tests, we patch the database connection pool so that it runs queries "synchronously". This is ok, except that if any queries are launched before we do the patching, those queries get left in limbo and never complete. To fix this, let's change the way we do the switcheroo, by patching out the method which creates the connection pool in the first place.
1 line
40 B
Text
1 line
40 B
Text
Patch the db conn pool sooner in tests.
|