Skip to content

Commit 6e7a4f3

Browse files
committed
Note that the step-by-step test is on purpose
1 parent 8b31df9 commit 6e7a4f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/storage/test_thread_subscriptions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,17 @@ def test_should_skip_autosubscription_after_unsubscription(self) -> None:
313313
def test_get_subscribers_to_thread(self) -> None:
314314
"""
315315
Test getting all subscribers to a thread at once.
316+
317+
To check cache invalidations are correct, we do multiple
318+
step-by-step rounds of subscription changes and assertions.
316319
"""
317320
other_user_id = "@other_user:test"
318321

322+
subscribers = self.get_success(
323+
self.store.get_subscribers_to_thread(self.room_id, self.thread_root_id)
324+
)
325+
self.assertEqual(subscribers, frozenset())
326+
319327
self._subscribe(self.thread_root_id, automatic=None, user_id=self.user_id)
320328

321329
subscribers = self.get_success(

0 commit comments

Comments
 (0)