From f3084b56187117e101f33322d1bfe2f2a12e855f Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Thu, 23 Nov 2023 17:57:44 +0100 Subject: [PATCH] remote: parallel tests --- hnix-store-remote/hnix-store-remote.cabal | 2 +- hnix-store-remote/tests/SerializeSpec.hs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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