diff options
author | realtyem <realtyem@gmail.com> | 2022-12-01 06:38:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 07:38:27 -0500 |
commit | 854a6884d81c95297bf93badcddc00a4cab93418 (patch) | |
tree | a32b5c54f84ce615031e92ef1a0d997e0209caff /tests/replication/tcp | |
parent | Cite launchpad bug that says ubuntu's pkgs are old (#14517) (diff) | |
download | synapse-854a6884d81c95297bf93badcddc00a4cab93418.tar.xz |
Modernize unit tests configuration settings for workers. (#14568)
Use the newer foo_instances configuration instead of the deprecated flags to enable specific features (e.g. start_pushers).
Diffstat (limited to 'tests/replication/tcp')
-rw-r--r-- | tests/replication/tcp/streams/test_federation.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/replication/tcp/streams/test_federation.py b/tests/replication/tcp/streams/test_federation.py index ffec06a0d6..bcb82c9c80 100644 --- a/tests/replication/tcp/streams/test_federation.py +++ b/tests/replication/tcp/streams/test_federation.py @@ -22,9 +22,8 @@ class FederationStreamTestCase(BaseStreamTestCase): def _get_worker_hs_config(self) -> dict: # enable federation sending on the worker config = super()._get_worker_hs_config() - # TODO: make it so we don't need both of these - config["send_federation"] = False - config["worker_app"] = "synapse.app.federation_sender" + config["worker_name"] = "federation_sender1" + config["federation_sender_instances"] = ["federation_sender1"] return config def test_catchup(self): |