summary refs log tree commit diff
path: root/tests/replication/slave/storage/test_events.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/replication/slave/storage/test_events.py')
-rw-r--r--tests/replication/slave/storage/test_events.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/replication/slave/storage/test_events.py b/tests/replication/slave/storage/test_events.py

index f33e6f60fb..44e859b5d1 100644 --- a/tests/replication/slave/storage/test_events.py +++ b/tests/replication/slave/storage/test_events.py
@@ -305,7 +305,16 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase): self.event_id += 1 - context = EventContext(current_state=state) + if state is not None: + state_ids = { + key: e.event_id for key, e in state.items() + } + else: + state_ids = None + + context = EventContext() + context.current_state_ids = state_ids + context.prev_state_ids = state_ids context.push_actions = push_actions ordering = None