We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b31df9 commit 6e7a4f3Copy full SHA for 6e7a4f3
tests/storage/test_thread_subscriptions.py
@@ -313,9 +313,17 @@ def test_should_skip_autosubscription_after_unsubscription(self) -> None:
313
def test_get_subscribers_to_thread(self) -> None:
314
"""
315
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.
319
320
other_user_id = "@other_user:test"
321
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
327
self._subscribe(self.thread_root_id, automatic=None, user_id=self.user_id)
328
329
subscribers = self.get_success(
0 commit comments