@@ -33,37 +33,36 @@ import qualified Test.Tasty.Ingredients as T
33
33
34
34
tests :: IO TestTree
35
35
tests = do
36
- testGroup <- runTestGroup <$> shouldRunInParallel
37
- pure $ testGroup " test/Spec.hs"
38
- [ testGroup " Spec"
39
- [ testGroup " Ledger Events"
36
+ pure $ T. testGroup " test/Spec.hs"
37
+ [ T. testGroup " Spec"
38
+ [ T. testGroup " Ledger Events"
40
39
[ H. ignoreOnWindows " Sanity Check" LedgerEvents. hprop_ledger_events_sanity_check
41
40
, H. ignoreOnWindows " Treasury Growth" LedgerEvents. prop_check_if_treasury_is_growing
42
41
-- TODO: Replace foldBlocks with checkLedgerStateCondition
43
- , testGroup " Governance"
42
+ , T. testGroup " Governance"
44
43
[ H. ignoreOnMacAndWindows " ProposeAndRatifyNewConstitution" Cardano.Testnet.Test.LedgerEvents.Gov.ProposeNewConstitution. hprop_ledger_events_propose_new_constitution
45
44
-- FIXME Those tests are flaky
46
45
-- , H.ignoreOnWindows "InfoAction" LedgerEvents.hprop_ledger_events_info_action
47
46
, H. ignoreOnWindows " ProposeNewConstitutionSPO" LedgerEvents. hprop_ledger_events_propose_new_constitution_spo
48
47
, H. ignoreOnWindows " DRepRetirement" DRepRetirement. hprop_drep_retirement
49
48
]
50
- , testGroup " Plutus"
49
+ , T. testGroup " Plutus"
51
50
[ H. ignoreOnWindows " PlutusV3" Cardano.Testnet.Test.Cli.Conway.Plutus. hprop_plutus_v3]
52
51
]
53
- , testGroup " CLI"
52
+ , T. testGroup " CLI"
54
53
[ H. ignoreOnWindows " Shutdown" Cardano.Testnet.Test.Node.Shutdown. hprop_shutdown
55
54
-- ShutdownOnSigint fails on Mac with
56
55
-- "Log file: /private/tmp/tmp.JqcjW7sLKS/kes-period-info-2-test-30c2d0d8eb042a37/logs/test-spo.stdout.log had no logs indicating the relevant node has minted blocks."
57
56
, H. ignoreOnMacAndWindows " ShutdownOnSigint" Cardano.Testnet.Test.Node.Shutdown. hprop_shutdownOnSigint
58
57
-- ShutdownOnSlotSynced FAILS Still. The node times out and it seems the "shutdown-on-slot-synced" flag does nothing
59
58
-- , H.ignoreOnWindows "ShutdownOnSlotSynced" Cardano.Testnet.Test.Node.Shutdown.hprop_shutdownOnSlotSynced
60
- , testGroup " Babbage"
59
+ , T. testGroup " Babbage"
61
60
[ H. ignoreOnMacAndWindows " leadership-schedule" Cardano.Testnet.Test.Cli.Babbage.LeadershipSchedule. hprop_leadershipSchedule -- FAILS
62
61
, H. ignoreOnWindows " stake-snapshot" Cardano.Testnet.Test.Cli.Babbage.StakeSnapshot. hprop_stakeSnapshot
63
62
, H. ignoreOnWindows " transaction" Cardano.Testnet.Test.Cli.Babbage.Transaction. hprop_transaction
64
63
]
65
64
-- TODO: Conway - Re-enable when create-staked is working in conway again
66
- -- , testGroup "Conway"
65
+ -- , T. testGroup "Conway"
67
66
-- [ H.ignoreOnWindows "stake-snapshot" Cardano.Testnet.Test.Cli.Conway.StakeSnapshot.hprop_stakeSnapshot
68
67
-- ]
69
68
-- Ignored on Windows due to <stdout>: commitBuffer: invalid argument (invalid character)
@@ -74,25 +73,13 @@ tests = do
74
73
]
75
74
76
75
]
77
- , testGroup " SubmitApi"
78
- [ testGroup " Babbage"
76
+ , T. testGroup " SubmitApi"
77
+ [ T. testGroup " Babbage"
79
78
[ H. ignoreOnWindows " transaction" Cardano.Testnet.Test.SubmitApi.Babbage.Transaction. hprop_transaction
80
79
]
81
80
]
82
81
]
83
82
84
- shouldRunInParallel :: IO Bool
85
- shouldRunInParallel = (== Just " 1" ) <$> E. lookupEnv " PARALLEL_TESTNETS"
86
-
87
- -- FIXME Right now when running tests concurrently it makes them flaky
88
- runTestGroup
89
- :: Bool -- ^ True to run in parallel
90
- -> T. TestName
91
- -> [TestTree ]
92
- -> TestTree
93
- runTestGroup True name = T. testGroup name
94
- runTestGroup False name = T. sequentialTestGroup name T. AllFinish
95
-
96
83
ingredients :: [T. Ingredient ]
97
84
ingredients = T. defaultIngredients
98
85
0 commit comments