@@ -28,11 +28,11 @@ spec = parallel $ do
28
28
failAfter 1 $ do
29
29
now <- getCurrentTime
30
30
let initialChainState = SimpleChainState {slot = ChainSlot 0 }
31
- let checkpointer = newChechpointer initialChainState now
31
+ let checkpointer = mkChechpointer initialChainState now
32
32
let logId = 0
33
33
let rotationConfig = RotateAfter 4
34
34
eventStore <- createMockSourceSink
35
- rotatingEventStore <- newRotatedEventStore rotationConfig checkpointer logId eventStore
35
+ rotatingEventStore <- mkRotatedEventStore rotationConfig checkpointer logId eventStore
36
36
testHydrate rotatingEventStore []
37
37
>>= notConnect
38
38
>>= primeWith inputsToOpenHead
@@ -55,7 +55,7 @@ spec = parallel $ do
55
55
toInteger (length unrotatedHistory) `shouldBe` totalEvents
56
56
let logId = 0
57
57
let rotationConfig = RotateAfter x
58
- (rotatedEventSource, _) <- newRotatedEventStore rotationConfig trivialCheckpoint logId eventStore
58
+ (rotatedEventSource, _) <- mkRotatedEventStore rotationConfig trivialCheckpoint logId eventStore
59
59
rotatedHistory <- getEvents rotatedEventSource
60
60
length rotatedHistory `shouldBe` 1
61
61
@@ -68,7 +68,7 @@ spec = parallel $ do
68
68
let rotationConfig = RotateAfter x
69
69
mockEventStore <- createMockSourceSink
70
70
let logId = 0
71
- rotatingEventStore <- newRotatedEventStore rotationConfig trivialCheckpoint logId mockEventStore
71
+ rotatingEventStore <- mkRotatedEventStore rotationConfig trivialCheckpoint logId mockEventStore
72
72
let (eventSource, EventSink {putEvent}) = rotatingEventStore
73
73
let totalEvents = toInteger x * y
74
74
let events = TrivialEvent . fromInteger <$> [1 .. totalEvents]
@@ -88,7 +88,7 @@ spec = parallel $ do
88
88
let rotationConfig = RotateAfter x
89
89
mockEventStore <- createMockSourceSink
90
90
let logId = 0
91
- rotatingEventStore <- newRotatedEventStore rotationConfig trivialCheckpoint logId mockEventStore
91
+ rotatingEventStore <- mkRotatedEventStore rotationConfig trivialCheckpoint logId mockEventStore
92
92
let (eventSource, EventSink {putEvent}) = rotatingEventStore
93
93
let totalEvents = toInteger x + toInteger y
94
94
let events = TrivialEvent . fromInteger <$> [1 .. totalEvents]
0 commit comments