Skip to content

Commit 61f99ee

Browse files
committed
Enable running testnet tests using all threads
1 parent 549d015 commit 61f99ee

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
@@ -28,17 +28,12 @@ import qualified Cardano.Testnet.Test.SubmitApi.Babbage.Transaction
2828
import Prelude
2929

3030
import qualified System.Environment as E
31-
import qualified System.Exit as IO
32-
import qualified System.IO as IO
3331
import System.IO (BufferMode (LineBuffering), hSetBuffering, hSetEncoding, stdout, utf8)
3432

3533
import Testnet.Property.Run (ignoreOnMacAndWindows, ignoreOnWindows)
3634

3735
import qualified Test.Tasty as T
3836
import Test.Tasty (TestTree)
39-
import qualified Test.Tasty.Ingredients as T
40-
import qualified Test.Tasty.Options as T
41-
import qualified Test.Tasty.Runners as T
4237

4338
tests :: IO TestTree
4439
tests = do
@@ -95,21 +90,6 @@ tests = do
9590
]
9691
]
9792

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

121-
let opts = T.singleOption $ T.NumThreads 1
122-
123-
E.withArgs args $ tests >>= defaultMainWithIngredientsAndOptions T.defaultIngredients opts
101+
E.withArgs args $ tests >>= T.defaultMainWithIngredients T.defaultIngredients

0 commit comments

Comments
 (0)