summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-06-01 11:14:16 +0100
committerDavid Baker <dave@matrix.org>2016-06-01 11:14:16 +0100
commit195254cae80f4748c3fc0ac3b46000047c2e6cc0 (patch)
treef31ab545782721fb8e29eb316a54ce8e52d7d4b3 /tests
parentMerge remote-tracking branch 'origin/develop' into dbkr/room_list_spider (diff)
downloadsynapse-195254cae80f4748c3fc0ac3b46000047c2e6cc0.tar.xz
Inject fake room list handler in tests
Otherwise it tries to start the remote public room list updating looping call which breaks.
Diffstat (limited to '')
-rw-r--r--tests/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 59d985b5f2..006abedbc1 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -67,6 +67,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
             version_string="Synapse/tests",
             database_engine=create_engine(config.database_config),
             get_db_conn=db_pool.get_db_conn,
+            room_list_handler=object(),
             **kargs
         )
         hs.setup()
@@ -75,6 +76,7 @@ def setup_test_homeserver(name="test", datastore=None, config=None, **kargs):
             name, db_pool=None, datastore=datastore, config=config,
             version_string="Synapse/tests",
             database_engine=create_engine(config.database_config),
+            room_list_handler=object(),
             **kargs
         )