File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
hydra-node/test/Hydra/Events Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ spec = parallel $ do
37
37
let initialChainState = SimpleChainState {slot = ChainSlot 0 }
38
38
let checkpointer = mkChechpointer initialChainState now
39
39
let logId = 0
40
+ -- XXX: this is hardcoded to ensure we get a checkpoint + a single event at the end
40
41
let rotationConfig = RotateAfter 4
41
42
eventStore <- createMockSourceSink
42
43
rotatingEventStore <- newRotatedEventStore rotationConfig checkpointer logId eventStore
@@ -52,7 +53,8 @@ spec = parallel $ do
52
53
let initialChainState = SimpleChainState {slot = ChainSlot 0 }
53
54
let checkpointer = mkChechpointer initialChainState now
54
55
let logId = 0
55
- let rotationConfig = RotateAfter 4
56
+ -- XXX: this is hardcoded to ensure we get a single checkpoint event at the end
57
+ let rotationConfig = RotateAfter 3
56
58
eventStore <- createMockSourceSink
57
59
rotatingEventStore <- newRotatedEventStore rotationConfig checkpointer logId eventStore
58
60
testHydrate rotatingEventStore []
You can’t perform that action at this time.
0 commit comments