summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2022-06-30 13:27:24 -0400
committerPatrick Cloke <patrickc@matrix.org>2022-06-30 13:27:24 -0400
commitb0366853cae1e08d30d44757d142f8670b7ec35c (patch)
treefc219b70153c400282180f5071c7daccc5b841c4 /tests/storage
parentDon't process /send requests for users who have hit their ratelimit (#13134) (diff)
parentFix unread counts on large servers (#13140) (diff)
downloadsynapse-b0366853cae1e08d30d44757d142f8670b7ec35c.tar.xz
Merge remote-tracking branch 'origin/release-v1.62' into develop
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_event_push_actions.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/storage/test_event_push_actions.py b/tests/storage/test_event_push_actions.py
index a5a2dab21c..8462952b8f 100644
--- a/tests/storage/test_event_push_actions.py
+++ b/tests/storage/test_event_push_actions.py
@@ -136,15 +136,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={},
                 )
             )
 
@@ -168,6 +165,7 @@ class EventPushActionsStoreTestCase(HomeserverTestCase):
 
         _inject_actions(6, PlAIN_NOTIF)
         _rotate(7)
+        _assert_counts(1, 0)
 
         self.get_success(
             self.store.db_pool.simple_delete(