diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-01-09 12:03:12 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-01-09 12:06:45 +0000 |
commit | 142fb0a7d40f17d834e1e4d13963839195c1040b (patch) | |
tree | 1a022367f1acd678264956c177ebcf764930d5cf /tests | |
parent | Merge pull request #2761 from turt2live/patch-1 (diff) | |
download | synapse-142fb0a7d40f17d834e1e4d13963839195c1040b.tar.xz |
Disable user_directory updates for UTs
Fix flakiness in the UTs caused by the user_directory being updated in the background
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py index ed8a7360f5..44e5f75093 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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 |