Skip to content

Commit 95bb58e

Browse files
committed
Fix missing instances
1 parent 18bfc45 commit 95bb58e

File tree

1 file changed

+9
-2
lines changed
  • ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/PerasCertDB

1 file changed

+9
-2
lines changed

ouroboros-consensus/test/storage-test/Test/Ouroboros/Storage/PerasCertDB/StateMachine.hs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Ouroboros.Consensus.Block.SupportsPeras
1111
import Test.Ouroboros.Storage.PerasCertDB.Model
1212
import Test.QuickCheck.StateModel
1313
import Ouroboros.Consensus.Storage.PerasCertDB.API (PerasWeightSnapshot)
14+
import Ouroboros.Consensus.Storage.PerasCertDB (PerasCertDbError)
1415

1516
tests :: TestTree
1617
tests = undefined
@@ -22,8 +23,14 @@ instance StateModel Model where
2223
data Action Model a where
2324
OpenDB :: Action Model ()
2425
CloseDB :: Action Model ()
25-
AddCert :: PerasCert Block -> Action Model ()
26-
GetWeightSnapshot :: Action Model (PerasWeightSnapshot Block)
26+
AddCert :: PerasCert Block -> Action Model (Either PerasCertDbError ())
27+
GetWeightSnapshot :: Action Model (Either PerasCertDbError (PerasWeightSnapshot Block))
2728

2829
arbitraryAction _ _ = error "arbitraryAction not implemented"
2930
initialState = error "initialState not implemented"
31+
32+
deriving instance Show (Action Model a)
33+
34+
instance HasVariables (Action Model a) where
35+
getAllVariables _ = mempty
36+

0 commit comments

Comments
 (0)