0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-15 14:32:30 +01:00

Disable user_directory updates for UTs

Fix flakiness in the UTs caused by the user_directory being updated in the
background
This commit is contained in:
Richard van der Hoff 2018-01-09 12:03:12 +00:00
parent e9f7677170
commit 142fb0a7d4

View file

@ -58,6 +58,10 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
config.email_enable_notifs = False
config.block_non_admin_invites = False
# disable user directory updates, because they get done in the
# background, which upsets the test runner.
config.update_user_directory = False
config.use_frozen_dicts = True
config.database_config = {"name": "sqlite3"}
config.ldap_enabled = False