Skip to content

Commit 2500bde

Browse files
committed
Add ChainDB test for ledger snapshots
1 parent dd7491d commit 2500bde

File tree

3 files changed

+403
-0
lines changed

3 files changed

+403
-0
lines changed

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ test-suite storage-test
761761
Test.Ouroboros.Storage.ChainDB.FollowerPromptness
762762
Test.Ouroboros.Storage.ChainDB.GcSchedule
763763
Test.Ouroboros.Storage.ChainDB.Iterator
764+
Test.Ouroboros.Storage.ChainDB.LedgerSnapshots
764765
Test.Ouroboros.Storage.ChainDB.Model
765766
Test.Ouroboros.Storage.ChainDB.Model.Test
766767
Test.Ouroboros.Storage.ChainDB.Paths
@@ -796,6 +797,7 @@ test-suite storage-test
796797
aeson,
797798
base,
798799
bifunctors,
800+
blockio:sim,
799801
bytestring,
800802
cardano-binary,
801803
cardano-ledger-binary:testlib,

ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/ChainDB.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import System.Info (os)
2525
import qualified Test.Ouroboros.Storage.ChainDB.FollowerPromptness as FollowerPromptness
2626
import qualified Test.Ouroboros.Storage.ChainDB.GcSchedule as GcSchedule
2727
import qualified Test.Ouroboros.Storage.ChainDB.Iterator as Iterator
28+
import qualified Test.Ouroboros.Storage.ChainDB.LedgerSnapshots as LedgerSnapshots
2829
import qualified Test.Ouroboros.Storage.ChainDB.Model.Test as Model
2930
import qualified Test.Ouroboros.Storage.ChainDB.Paths as Paths
3031
import qualified Test.Ouroboros.Storage.ChainDB.StateMachine as StateMachine
@@ -36,6 +37,7 @@ tests =
3637
testGroup "ChainDB" $
3738
[ Iterator.tests
3839
, FollowerPromptness.tests
40+
, LedgerSnapshots.tests
3941
, GcSchedule.tests
4042
, Model.tests
4143
, Paths.tests

0 commit comments

Comments
 (0)