mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-09 23:23:32 -05: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
|
|
@ -56,7 +56,8 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
|
|||
|
||||
def make_homeserver(self, reactor: MemoryReactor, clock: Clock) -> HomeServer:
|
||||
config = self.default_config()
|
||||
config["update_user_directory"] = True
|
||||
# Re-enables updating the user directory, as that function is needed below.
|
||||
config["update_user_directory_from_worker"] = None
|
||||
|
||||
self.appservice = ApplicationService(
|
||||
token="i_am_an_app_service",
|
||||
|
|
@ -1045,7 +1046,9 @@ class TestUserDirSearchDisabled(unittest.HomeserverTestCase):
|
|||
|
||||
def make_homeserver(self, reactor: MemoryReactor, clock: Clock) -> HomeServer:
|
||||
config = self.default_config()
|
||||
config["update_user_directory"] = True
|
||||
# Re-enables updating the user directory, as that function is needed below. It
|
||||
# will be force disabled later
|
||||
config["update_user_directory_from_worker"] = None
|
||||
hs = self.setup_test_homeserver(config=config)
|
||||
|
||||
self.config = hs.config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue