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
1 changed files with 4 additions and 0 deletions

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