Register homeserver modules when creating test homeserver (#13558)

This commit is contained in:
Andrew Morgan 2022-08-19 16:52:20 +01:00 committed by GitHub
parent f3fba4914d
commit 40e3e68cd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 22 deletions

View file

@ -141,10 +141,6 @@ class PresenceRouterTestCase(FederatingHomeserverTestCase):
hs = self.setup_test_homeserver(
federation_transport_client=fed_transport_client,
)
# Load the modules into the homeserver
module_api = hs.get_module_api()
for module, config in hs.config.modules.loaded_modules:
module(config=config, api=module_api)
load_legacy_presence_router(hs)