Skip to content

Commit

Permalink
Call sodiumInit at the start of the testsuite
Browse files Browse the repository at this point in the history
Since IntersectMBO/cardano-base#161, `sodiumInit`
must be called at least once before using libsodium-based crypto.
  • Loading branch information
mrBliss authored and intricate committed Oct 16, 2020
1 parent 4adc851 commit 1ed1a86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cardano-api/test/cardano-api-test.hs
@@ -1,5 +1,6 @@

import Cardano.Prelude
import Cardano.Crypto.Libsodium (sodiumInit)

import Test.Tasty (TestTree, defaultMain, testGroup)

Expand All @@ -13,7 +14,8 @@ import qualified Test.Cardano.Api.Typed.MultiSigScript
import qualified Test.Cardano.Api.Typed.RawBytes

main :: IO ()
main =
main = do
sodiumInit
defaultMain tests

tests :: TestTree
Expand Down

0 comments on commit 1ed1a86

Please sign in to comment.