Skip to content

Commit

Permalink
[FAIL] Re-enable Babbage-era minimum UTxO golden tests.
Browse files Browse the repository at this point in the history
Note that these tests currently fail, so we have marked this commit with
the [FAIL] tag.

Subsequent commits will also be marked with [FAIL] until the whole test
suite passes. The first commit that causes the whole test suite to pass
will be marked with [PASS].

Test failures are of the following form:
```
  lib/shelley/test/unit/Cardano/Wallet/Shelley/MinimumUTxOSpec.hs:496:9:
  1) computeMinimumCoinForUTxO, Golden Tests, goldenTests_computeMinimumCoinForUTxO Babbage, golden test #0
       Falsified (after 1 test):
         resultExpected:
             Coin 995610

         resultReturned:
             Coin 1077500

         Condition violated: resultReturned == resultExpected

  To rerun use: --match "/computeMinimumCoinForUTxO/Golden Tests/goldenTests_computeMinimumCoinForUTxO Babbage/golden test #0/"
  ...
```
  • Loading branch information
jonathanknowles committed Jul 14, 2022
1 parent 999890b commit f8d3217
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions lib/shelley/test/unit/Cardano/Wallet/Shelley/MinimumUTxOSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,9 @@ spec = do
goldenTests_computeMinimumCoinForUTxO "Alonzo"
goldenMinimumUTxO_Alonzo
goldenMinimumCoins_Alonzo

-- FIXME [ADP-1978] Re-enable
--goldenTests_computeMinimumCoinForUTxO "Babbage"
-- goldenMinimumUTxO_Babbage
-- goldenMinimumCoins_Babbage
goldenTests_computeMinimumCoinForUTxO "Babbage"
goldenMinimumUTxO_Babbage
goldenMinimumCoins_Babbage

-- Check that it's possible to evaluate 'computeMinimumCoinForUTxO' without
-- any run-time error.
Expand Down Expand Up @@ -346,9 +344,8 @@ goldenMinimumUTxO_Alonzo =
minimumUTxOForShelleyBasedEra ShelleyBasedEraAlonzo
def {Alonzo._coinsPerUTxOWord = testParameter_coinsPerUTxOWord_Alonzo}

-- FIXME [ADP-1978] Re-enable
_goldenMinimumUTxO_Babbage :: MinimumUTxO
_goldenMinimumUTxO_Babbage =
goldenMinimumUTxO_Babbage :: MinimumUTxO
goldenMinimumUTxO_Babbage =
minimumUTxOForShelleyBasedEra ShelleyBasedEraBabbage
def {Babbage._coinsPerUTxOByte = testParameter_coinsPerUTxOByte_Babbage}

Expand Down Expand Up @@ -392,9 +389,8 @@ goldenMinimumCoins_Alonzo =
, (goldenTokenMap_4, Coin 1_862_028)
]

-- FIXME [ADP-1978] Re-enable
_goldenMinimumCoins_Babbage :: [(TokenMap, Coin)]
_goldenMinimumCoins_Babbage =
goldenMinimumCoins_Babbage :: [(TokenMap, Coin)]
goldenMinimumCoins_Babbage =
[ (goldenTokenMap_0, Coin 995_610)
, (goldenTokenMap_1, Coin 1_150_770)
, (goldenTokenMap_2, Coin 1_323_170)
Expand Down

0 comments on commit f8d3217

Please sign in to comment.