Skip to content

Commit

Permalink
Enable round-trip tests for Conway's ledger states
Browse files Browse the repository at this point in the history
Normal and extended.
  • Loading branch information
dnadales committed Mar 27, 2024
1 parent fcd601c commit a6bf691
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion ouroboros-consensus/ouroboros-consensus.cabal
Expand Up @@ -396,7 +396,6 @@ library unstable-consensus-testlib
, strict-checked-vars
, strict-sop-core
, tasty
, tasty-expected-failure
, tasty-golden
, tasty-hunit
, tasty-quickcheck
Expand Down
Expand Up @@ -77,7 +77,6 @@ import Ouroboros.Network.Block (Serialised (..), fromSerialised,
mkSerialised)
import Quiet (Quiet (..))
import Test.Tasty
import Test.Tasty.ExpectedFailure (expectFailBecause)
import Test.Tasty.QuickCheck
import Test.Util.Orphans.Arbitrary ()
import Test.Util.Serialisation.Examples (Examples (..), Labelled)
Expand Down Expand Up @@ -753,18 +752,9 @@ examplesRoundtrip codecConfig examples =
]
where
mkTest exampleName example =
let
runTest =
testProperty (fromMaybe "" exampleName)
testProperty (fromMaybe "" exampleName)
$ once
$ roundtrip' enc dec example
_3740 = "https://github.com/IntersectMBO/cardano-ledger/issues/3740"
in
case (testLabel, exampleName) of
-- We case on Cardano specific test names here to avoid introducing parameters to 'examplesRoundtrip' that will be removed once #3740 is fixed. This is a temporary workaround.
("Ledger state" , Just "Conway") -> expectFailBecause _3740 $ runTest
("Extended ledger state", Just "Conway") -> expectFailBecause _3740 $ runTest
_ -> runTest

encodeExt =
encodeExtLedgerState
Expand Down

0 comments on commit a6bf691

Please sign in to comment.