@@ -121,9 +121,6 @@ tests =
121121 [ testGroup
122122 " Chain not long enough to take a snapshot, so blocks are not persisted into ImmutableDB and are lost."
123123 [testCase " system" $ runSystemIO updateLedgerSnapshots_WipeVolatileDB_withoutSnapshot]
124- , testGroup
125- " Chain is long enough to take a snapshot, blocks are copied into ImmutableDB."
126- [testCase " system" $ runSystemIO updateLedgerSnapshots_WipeVolatileDB_withSnapshot]
127124 ]
128125 ]
129126
@@ -342,9 +339,6 @@ waitForImmutableBlock_emptySlot = do
342339-- ImmutableDB when the snapshot policy selects slots for snapshotting. When the
343340-- immutable chain is too short, no blocks should be flushed, and WipeVolatileDB
344341-- should recover to the tip of the (empty) ImmutableDB.
345- --
346- -- See 'updateLedgerSnapshots_WipeVolatileDB_withSnapshot' for the scenario where
347- -- the snapshot is taken.
348342updateLedgerSnapshots_WipeVolatileDB_withoutSnapshot ::
349343 forall m .
350344 ( Block m ~ TestBlock
@@ -367,30 +361,6 @@ updateLedgerSnapshots_WipeVolatileDB_withoutSnapshot = do
367361 where
368362 fork0 = TestBody 1 True Nothing
369363
370- -- | See 'updateLedgerSnapshots_WipeVolatileDB_withoutSnapshot' for details.
371- updateLedgerSnapshots_WipeVolatileDB_withSnapshot ::
372- forall m .
373- ( Block m ~ TestBlock
374- , SupportsUnitTest m
375- , MonadError TestFailure m
376- ) =>
377- m ()
378- updateLedgerSnapshots_WipeVolatileDB_withSnapshot = do
379- b1 <- addBlock $ firstBlock 1 $ fork0
380- b2 <- addBlock $ mkNextBlock b1 3 $ fork0
381- b3 <- addBlock $ mkNextBlock b2 5 $ fork0
382- b4 <- addBlock $ mkNextBlock b3 7 $ fork0
383- _ <- addBlock $ mkNextBlock b4 9 $ fork0
384-
385- updateLedgerSnapshots
386-
387- tip <- wipeVolatileDB
388- tip
389- /= genesisPoint
390- `orFailWith` (" Expected ChainDB non-Origin tip after wiping VolatileDB, got: " <> show tip)
391- where
392- fork0 = TestBody 1 True Nothing
393-
394364{- ------------------------------------------------------------------------------
395365 Helpers and testing infrastructure
396366-------------------------------------------------------------------------------}
0 commit comments