diff --git a/tests/storage/test_msc4242_state_dag.py b/tests/storage/test_msc4242_state_dag.py index 6c2486b542..42f996ccc0 100644 --- a/tests/storage/test_msc4242_state_dag.py +++ b/tests/storage/test_msc4242_state_dag.py @@ -154,6 +154,7 @@ class MSC4242EventPersistenceStateDagsStoreTestCase(HomeserverTestCase): prev_state_events: list[str], rejected: bool = False, ) -> tuple[MSC4242Event, EventContext]: + # We use a mock here to allow us to set the `event_id`. ev = Mock(spec=EventBase) ev.event_id = id ev.prev_state_events = prev_state_events