summary refs log tree commit diff
path: root/tests/replication/_base.py
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2020-10-15 21:29:13 +0200
committerGitHub <noreply@github.com>2020-10-15 15:29:13 -0400
commit6b5a115c0a0f9036444cd8686b32afbdf5334915 (patch)
tree168f7026466ec07269c3cc4882f7572ac60fd64a /tests/replication/_base.py
parentSend some ephemeral events to appservices (#8437) (diff)
downloadsynapse-6b5a115c0a0f9036444cd8686b32afbdf5334915.tar.xz
Solidify the HomeServer constructor. (#8515)
This implements a more standard API for instantiating a homeserver and
moves some of the dependency injection into the test suite.

More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
Diffstat (limited to 'tests/replication/_base.py')
-rw-r--r--tests/replication/_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/_base.py b/tests/replication/_base.py
index 81ea985b9f..093e2faac7 100644
--- a/tests/replication/_base.py
+++ b/tests/replication/_base.py
@@ -59,7 +59,7 @@ class BaseStreamTestCase(unittest.HomeserverTestCase):
         self.reactor.lookups["testserv"] = "1.2.3.4"
         self.worker_hs = self.setup_test_homeserver(
             http_client=None,
-            homeserverToUse=GenericWorkerServer,
+            homeserver_to_use=GenericWorkerServer,
             config=self._get_worker_hs_config(),
             reactor=self.reactor,
         )
@@ -266,7 +266,7 @@ class BaseMultiWorkerStreamTestCase(unittest.HomeserverTestCase):
         config.update(extra_config)
 
         worker_hs = self.setup_test_homeserver(
-            homeserverToUse=GenericWorkerServer,
+            homeserver_to_use=GenericWorkerServer,
             config=config,
             reactor=self.reactor,
             **kwargs