Skip to content

Commit 913a6ed

Browse files
committed
Enable running testnet tests using all threads
1 parent e155f27 commit 913a6ed

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

cardano-testnet/test/cardano-testnet-test/cardano-testnet-test.hs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,12 @@ import qualified Cardano.Testnet.Test.SubmitApi.Babbage.Transaction
2727
import Prelude
2828

2929
import qualified System.Environment as E
30-
import qualified System.Exit as IO
31-
import qualified System.IO as IO
3230
import System.IO (BufferMode (LineBuffering), hSetBuffering, hSetEncoding, stdout, utf8)
3331

3432
import qualified Testnet.Property.Run as H
3533

3634
import qualified Test.Tasty as T
3735
import Test.Tasty (TestTree)
38-
import qualified Test.Tasty.Ingredients as T
39-
import qualified Test.Tasty.Options as T
40-
import qualified Test.Tasty.Runners as T
4136

4237
tests :: IO TestTree
4338
tests = do
@@ -91,21 +86,6 @@ tests = do
9186
]
9287
]
9388

94-
defaultMainWithIngredientsAndOptions :: [T.Ingredient] -> T.OptionSet -> T.TestTree -> IO ()
95-
defaultMainWithIngredientsAndOptions ins opts testTree = do
96-
T.installSignalHandlers
97-
parsedOpts <- T.parseOptions ins testTree
98-
let opts' = opts <> parsedOpts
99-
100-
case T.tryIngredients ins opts' testTree of
101-
Nothing -> do
102-
IO.hPutStrLn IO.stderr
103-
"No ingredients agreed to run. Something is wrong either with your ingredient set or the options."
104-
IO.exitFailure
105-
Just act -> do
106-
ok <- act
107-
if ok then IO.exitSuccess else IO.exitFailure
108-
10989
main :: IO ()
11090
main = do
11191
Crypto.cryptoInit
@@ -114,6 +94,4 @@ main = do
11494
hSetEncoding stdout utf8
11595
args <- E.getArgs
11696

117-
let opts = T.singleOption $ T.NumThreads 1
118-
119-
E.withArgs args $ tests >>= defaultMainWithIngredientsAndOptions T.defaultIngredients opts
97+
E.withArgs args $ tests >>= T.defaultMainWithIngredients T.defaultIngredients

0 commit comments

Comments
 (0)