mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 04:20:00 -04:00
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).
This commit is contained in:
parent
7aefc7e9fc
commit
854a6884d8
18 changed files with 123 additions and 81 deletions
|
@ -25,8 +25,9 @@ from tests.unittest import HomeserverTestCase
|
|||
class FederationAckTestCase(HomeserverTestCase):
|
||||
def default_config(self) -> dict:
|
||||
config = super().default_config()
|
||||
config["worker_app"] = "synapse.app.federation_sender"
|
||||
config["send_federation"] = False
|
||||
config["worker_app"] = "synapse.app.generic_worker"
|
||||
config["worker_name"] = "federation_sender1"
|
||||
config["federation_sender_instances"] = ["federation_sender1"]
|
||||
return config
|
||||
|
||||
def make_homeserver(self, reactor, clock):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue