Skip to content

Commit a6bf691

Browse files
committed
Enable round-trip tests for Conway's ledger states
Normal and extended.
1 parent fcd601c commit a6bf691

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

ouroboros-consensus/ouroboros-consensus.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ library unstable-consensus-testlib
396396
, strict-checked-vars
397397
, strict-sop-core
398398
, tasty
399-
, tasty-expected-failure
400399
, tasty-golden
401400
, tasty-hunit
402401
, tasty-quickcheck

ouroboros-consensus/src/unstable-consensus-testlib/Test/Util/Serialisation/Roundtrip.hs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ import Ouroboros.Network.Block (Serialised (..), fromSerialised,
7777
mkSerialised)
7878
import Quiet (Quiet (..))
7979
import Test.Tasty
80-
import Test.Tasty.ExpectedFailure (expectFailBecause)
8180
import Test.Tasty.QuickCheck
8281
import Test.Util.Orphans.Arbitrary ()
8382
import Test.Util.Serialisation.Examples (Examples (..), Labelled)
@@ -753,18 +752,9 @@ examplesRoundtrip codecConfig examples =
753752
]
754753
where
755754
mkTest exampleName example =
756-
let
757-
runTest =
758-
testProperty (fromMaybe "" exampleName)
755+
testProperty (fromMaybe "" exampleName)
759756
$ once
760757
$ roundtrip' enc dec example
761-
_3740 = "https://github.com/IntersectMBO/cardano-ledger/issues/3740"
762-
in
763-
case (testLabel, exampleName) of
764-
-- 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.
765-
("Ledger state" , Just "Conway") -> expectFailBecause _3740 $ runTest
766-
("Extended ledger state", Just "Conway") -> expectFailBecause _3740 $ runTest
767-
_ -> runTest
768758

769759
encodeExt =
770760
encodeExtLedgerState

0 commit comments

Comments
 (0)