mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Speed up unit tests when using PostgreSQL (#8450)
This commit is contained in:
parent
62894673e6
commit
ec10bdd32b
3 changed files with 17 additions and 1 deletions
|
@ -372,6 +372,10 @@ def setup_test_homeserver(cleanup_func, *args, **kwargs):
|
|||
pool.threadpool = ThreadPool(clock._reactor)
|
||||
pool.running = True
|
||||
|
||||
# We've just changed the Databases to run DB transactions on the same
|
||||
# thread, so we need to disable the dedicated thread behaviour.
|
||||
server.get_datastores().main.USE_DEDICATED_DB_THREADS_FOR_EVENT_FETCHING = False
|
||||
|
||||
return server
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue