summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2022-01-21 12:21:28 +0000
committerGitHub <noreply@github.com>2022-01-21 12:21:28 +0000
commit2aa37a4250675f6d9feb57ec0dce65b2a6a3cde6 (patch)
tree92d8f59391dc13e7fe87350e9f833d3427f9c4fb /tests
parentDo not try to serialize raw aggregations dict. (#11791) (diff)
downloadsynapse-2aa37a4250675f6d9feb57ec0dce65b2a6a3cde6.tar.xz
Add `state_key` and `rejection_reason` to `events` (#11792)
... and start populating them for new events
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_event_chain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/storage/test_event_chain.py b/tests/storage/test_event_chain.py
index 7b7f6c349e..e3273a93f9 100644
--- a/tests/storage/test_event_chain.py
+++ b/tests/storage/test_event_chain.py
@@ -19,6 +19,7 @@ from twisted.trial import unittest
 from synapse.api.constants import EventTypes
 from synapse.api.room_versions import RoomVersions
 from synapse.events import EventBase
+from synapse.events.snapshot import EventContext
 from synapse.rest import admin
 from synapse.rest.client import login, room
 from synapse.storage.databases.main.events import _LinkMap
@@ -391,7 +392,9 @@ class EventChainStoreTestCase(HomeserverTestCase):
         def _persist(txn):
             # We need to persist the events to the events and state_events
             # tables.
-            persist_events_store._store_event_txn(txn, [(e, {}) for e in events])
+            persist_events_store._store_event_txn(
+                txn, [(e, EventContext()) for e in events]
+            )
 
             # Actually call the function that calculates the auth chain stuff.
             persist_events_store._persist_event_auth_chain_txn(txn, events)