Skip to content

Commit dbca129

Browse files
committed
Enable running testnet tests using all threads
1 parent 3ecf75e commit dbca129

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
@@ -17,17 +17,12 @@ import qualified Cardano.Testnet.Test.SubmitApi.Transaction
1717
import Prelude
1818

1919
import qualified System.Environment as E
20-
import qualified System.Exit as IO
21-
import qualified System.IO as IO
2220
import System.IO (BufferMode (LineBuffering), hSetBuffering, hSetEncoding, stdout, utf8)
2321

2422
import Testnet.Property.Run (ignoreOnMacAndWindows, ignoreOnWindows)
2523

2624
import qualified Test.Tasty as T
2725
import Test.Tasty (TestTree)
28-
import qualified Test.Tasty.Ingredients as T
29-
import qualified Test.Tasty.Options as T
30-
import qualified Test.Tasty.Runners as T
3126

3227
tests :: IO TestTree
3328
tests = do
@@ -92,21 +87,6 @@ tests = do
9287

9388
]
9489

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

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

0 commit comments

Comments
 (0)