mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 03:15:09 -04:00
Fix unread counts on large servers (#13140)
This commit is contained in:
parent
a3a05c812d
commit
dbce28b2f1
3 changed files with 32 additions and 29 deletions
|
@ -134,15 +134,12 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
last_read_stream_ordering[0] = stream
|
||||
|
||||
self.get_success(
|
||||
self.store.db_pool.runInteraction(
|
||||
"",
|
||||
self.store._insert_linearized_receipt_txn,
|
||||
self.store.insert_receipt(
|
||||
room_id,
|
||||
"m.read",
|
||||
user_id,
|
||||
f"$test{stream}:example.com",
|
||||
{},
|
||||
stream,
|
||||
user_id=user_id,
|
||||
event_ids=[f"$test{stream}:example.com"],
|
||||
data={},
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -166,6 +163,7 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
|
|||
|
||||
_inject_actions(6, PlAIN_NOTIF)
|
||||
_rotate(7)
|
||||
_assert_counts(1, 0)
|
||||
|
||||
self.get_success(
|
||||
self.store.db_pool.simple_delete(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue