diff --git a/hnix-store-remote/hnix-store-remote.cabal b/hnix-store-remote/hnix-store-remote.cabal index d3cb5ed7..7767c964 100644 --- a/hnix-store-remote/hnix-store-remote.cabal +++ b/hnix-store-remote/hnix-store-remote.cabal @@ -121,7 +121,7 @@ test-suite remote type: exitcode-stdio-1.0 main-is: Driver.hs hs-source-dirs: tests - ghc-options: -Wall + ghc-options: -Wall -threaded -rtsopts "-with-rtsopts -N" other-modules: SerializeSpec build-tool-depends: diff --git a/hnix-store-remote/tests/SerializeSpec.hs b/hnix-store-remote/tests/SerializeSpec.hs index 11adf94c..4f4ad344 100644 --- a/hnix-store-remote/tests/SerializeSpec.hs +++ b/hnix-store-remote/tests/SerializeSpec.hs @@ -9,7 +9,7 @@ import Data.Serialize.Get (Get, runGet) import Data.Serialize.Put (Putter, runPut) import Data.Text (Text) import Data.Time (NominalDiffTime) -import Test.Hspec (Expectation, Spec, describe, it, shouldBe) +import Test.Hspec (Expectation, Spec, describe, it, parallel, shouldBe) import Test.Hspec.QuickCheck (prop) import Test.Hspec.Nix (roundtrips) import Test.QuickCheck (arbitrary, forAll, suchThat) @@ -56,7 +56,7 @@ roundtripS = (runGet get) spec :: Spec -spec = do +spec = parallel $ do describe "Prim" $ do prop "Int" $ roundtrips2 putInt getInt prop "Bool" $ roundtrips2 putBool getBool