mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 11:10: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
|
@ -200,7 +200,8 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
|
|||
],
|
||||
)
|
||||
|
||||
@override_config({"send_federation": True})
|
||||
# Enable federation sending on the main process.
|
||||
@override_config({"federation_sender_instances": None})
|
||||
def test_started_typing_remote_send(self) -> None:
|
||||
self.room_members = [U_APPLE, U_ONION]
|
||||
|
||||
|
@ -305,7 +306,8 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
|
|||
self.assertEqual(events[0], [])
|
||||
self.assertEqual(events[1], 0)
|
||||
|
||||
@override_config({"send_federation": True})
|
||||
# Enable federation sending on the main process.
|
||||
@override_config({"federation_sender_instances": None})
|
||||
def test_stopped_typing(self) -> None:
|
||||
self.room_members = [U_APPLE, U_BANANA, U_ONION]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue