Skip to content

Commit

Permalink
Call cryptoInit before running test suites (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
amesgen committed May 30, 2023
2 parents 3a7c25c + f65f6bf commit fc1245d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ouroboros-consensus-cardano/test/cardano-test/Main.hs
@@ -1,6 +1,6 @@
module Main (main) where

import Cardano.Crypto.Libsodium (sodiumInit)
import Cardano.Crypto.Init (cryptoInit)
import System.IO (BufferMode (LineBuffering), hSetBuffering,
hSetEncoding, stdout, utf8)
import qualified Test.Consensus.Cardano.ByronCompatibility (tests)
Expand All @@ -18,7 +18,7 @@ main :: IO ()
main = do
hSetBuffering stdout LineBuffering
hSetEncoding stdout utf8
sodiumInit
cryptoInit
defaultMainWithTestEnv defaultTestEnvConfig tests

tests :: TestTree
Expand Down
4 changes: 2 additions & 2 deletions ouroboros-consensus-cardano/test/shelley-test/Main.hs
@@ -1,6 +1,6 @@
module Main (main) where

import Cardano.Crypto.Libsodium (sodiumInit)
import Cardano.Crypto.Init (cryptoInit)
import qualified Test.Consensus.Shelley.Coherence (tests)
import qualified Test.Consensus.Shelley.Golden (tests)
import qualified Test.Consensus.Shelley.Serialisation (tests)
Expand All @@ -10,7 +10,7 @@ import Test.Util.TestEnv (defaultMainWithTestEnv,
defaultTestEnvConfig)

main :: IO ()
main = sodiumInit >> defaultMainWithTestEnv defaultTestEnvConfig tests
main = cryptoInit >> defaultMainWithTestEnv defaultTestEnvConfig tests

tests :: TestTree
tests =
Expand Down

0 comments on commit fc1245d

Please sign in to comment.