mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-24 03:11:23 -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
|
@ -125,7 +125,8 @@ def default_config(
|
|||
"""
|
||||
config_dict = {
|
||||
"server_name": name,
|
||||
"send_federation": False,
|
||||
# Setting this to an empty list turns off federation sending.
|
||||
"federation_sender_instances": [],
|
||||
"media_store_path": "media",
|
||||
# the test signing key is just an arbitrary ed25519 key to keep the config
|
||||
# parser happy
|
||||
|
@ -183,8 +184,9 @@ def default_config(
|
|||
# rooms will fail.
|
||||
"default_room_version": DEFAULT_ROOM_VERSION,
|
||||
# disable user directory updates, because they get done in the
|
||||
# background, which upsets the test runner.
|
||||
"update_user_directory": False,
|
||||
# background, which upsets the test runner. Setting this to an
|
||||
# (obviously) fake worker name disables updating the user directory.
|
||||
"update_user_directory_from_worker": "does_not_exist_worker_name",
|
||||
"caches": {"global_factor": 1, "sync_response_cache_duration": 0},
|
||||
"listeners": [{"port": 0, "type": "http"}],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue