Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Re-activated the failing goldenPir tests for plutus-use-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
koslambrou committed Jun 9, 2022
1 parent ed54a2b commit 4ccbe73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions plutus-use-cases/test/Spec/GameStateMachine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import Plutus.Contract.Test.Coverage
import Plutus.Contracts.GameStateMachine as G hiding (Guess)
import Plutus.Contracts.GameStateMachine.Coverage
import Plutus.Trace.Emulator as Trace
import PlutusTx qualified
import PlutusTx.Coverage

gameParam :: G.GameParam
Expand Down Expand Up @@ -339,8 +340,7 @@ tests =
.&&. walletFundsChange w1 (Ada.toValue (-2_000_000) <> Ada.adaValueOf (-8)))
failTrace

-- TODO: turn this on again when reproducibility issue in core is fixed
-- , goldenPir "test/Spec/gameStateMachine.pir" $$(PlutusTx.compile [|| mkValidator ||])
, goldenPir "test/Spec/gameStateMachine.pir" $$(PlutusTx.compile [|| mkValidator ||])

, HUnit.testCaseSteps "script size is reasonable" $ \step ->
reasonable' step (Scripts.validatorScript $ G.typedValidator gameParam) 49000
Expand Down
5 changes: 3 additions & 2 deletions plutus-use-cases/test/Spec/Governance.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Plutus.Contract.Test
import Plutus.Contracts.Governance qualified as Gov
import Plutus.Trace.Emulator (EmulatorTrace)
import Plutus.Trace.Emulator qualified as Trace
import PlutusTx qualified
import PlutusTx.Prelude (BuiltinByteString, fromBuiltin)

import Test.Tasty (TestTree, testGroup)
Expand All @@ -46,8 +47,8 @@ tests =
.&&. dataAtAddress (Scripts.validatorAddress $ Gov.typedValidator params) (maybe False ((== lawv1) . Gov.law) . listToMaybe ))
(doVoting 5 5 1)

-- TODO: turn this on again when reproducibility issue in core is fixed
-- , goldenPir "test/Spec/governance.pir" $$(PlutusTx.compile [|| Gov.mkValidator ||])
, goldenPir "test/Spec/governance.pir" $$(PlutusTx.compile [|| Gov.mkValidator ||])

, HUnit.testCase "script size is reasonable"
( reasonable (Scripts.validatorScript $ Gov.typedValidator params)
23000
Expand Down
5 changes: 3 additions & 2 deletions plutus-use-cases/test/Spec/MultiSigStateMachine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Plutus.Contract.Test
import Plutus.Contracts.MultiSigStateMachine qualified as MS
import Plutus.Trace.Emulator (EmulatorTrace)
import Plutus.Trace.Emulator qualified as Trace
import PlutusTx qualified

import Test.Tasty (TestTree, testGroup)
import Test.Tasty.HUnit qualified as HUnit
Expand Down Expand Up @@ -54,8 +55,8 @@ tests =
.&&. walletFundsChange w2 (Ada.adaValueOf 10))
(lockProposeSignPay 3 3)

-- TODO: turn this on again when reproducibility issue in core is fixed
-- , goldenPir "test/Spec/multisigStateMachine.pir" $$(PlutusTx.compile [|| MS.mkValidator ||])
, goldenPir "test/Spec/multisigStateMachine.pir" $$(PlutusTx.compile [|| MS.mkValidator ||])

, HUnit.testCaseSteps "script size is reasonable" $ \step -> reasonable' step (Scripts.validatorScript $ MS.typedValidator params) 51000
]

Expand Down

0 comments on commit 4ccbe73

Please sign in to comment.