mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-22 19:14:36 -04:00
Fix unit tests
This commit is contained in:
parent
f3182bb1d0
commit
8fbe418777
2 changed files with 40 additions and 15 deletions
|
@ -222,9 +222,11 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
|
|||
state_ids = {
|
||||
key: e.event_id for key, e in state.items()
|
||||
}
|
||||
context = EventContext()
|
||||
context.current_state_ids = state_ids
|
||||
context.prev_state_ids = state_ids
|
||||
context = EventContext.with_state(
|
||||
state_group=None,
|
||||
current_state_ids=state_ids,
|
||||
prev_state_ids=state_ids
|
||||
)
|
||||
else:
|
||||
state_handler = self.hs.get_state_handler()
|
||||
context = yield state_handler.compute_event_context(event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue