Skip to content

Commit 618ef20

Browse files
committed
fixups after merge
1 parent 08725b5 commit 618ef20

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/push/test_bulk_push_rule_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def test_suppress_edits(self) -> None:
453453
@override_config({"experimental_features": {"msc4306_enabled": True}})
454454
def test_thread_subscriptions(self) -> None:
455455
bulk_evaluator = BulkPushRuleEvaluator(self.hs)
456-
(thread_root_id,) = self.helper.send_events(self.room_id, 1, tok=self.token)
456+
(thread_root_id,) = self.helper.send_messages(self.room_id, 1, tok=self.token)
457457

458458
self.assertFalse(
459459
self._create_and_process(
@@ -501,7 +501,7 @@ def test_with_disabled_thread_subscriptions(self) -> None:
501501
FUTURE: If MSC4306 becomes enabled-by-default/accepted, this test is to be removed.
502502
"""
503503
bulk_evaluator = BulkPushRuleEvaluator(self.hs)
504-
(thread_root_id,) = self.helper.send_events(self.room_id, 1, tok=self.token)
504+
(thread_root_id,) = self.helper.send_messages(self.room_id, 1, tok=self.token)
505505

506506
# When MSC4306 is not enabled, a threaded message generates a notification
507507
# by default.

tests/storage/test_thread_subscriptions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,18 @@ def test_get_subscribers_to_thread(self) -> None:
342342
)
343343
self.assertEqual(subscribers, frozenset())
344344

345-
self._subscribe(self.thread_root_id, automatic=None, user_id=self.user_id)
345+
self._subscribe(
346+
self.thread_root_id, automatic_event_orderings=None, user_id=self.user_id
347+
)
346348

347349
subscribers = self.get_success(
348350
self.store.get_subscribers_to_thread(self.room_id, self.thread_root_id)
349351
)
350352
self.assertEqual(subscribers, frozenset((self.user_id,)))
351353

352-
self._subscribe(self.thread_root_id, automatic=None, user_id=other_user_id)
354+
self._subscribe(
355+
self.thread_root_id, automatic_event_orderings=None, user_id=other_user_id
356+
)
353357

354358
subscribers = self.get_success(
355359
self.store.get_subscribers_to_thread(self.room_id, self.thread_root_id)

0 commit comments

Comments
 (0)