Skip to content

Commit

Permalink
remote: parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Nov 23, 2023
1 parent 2898f16 commit f3084b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hnix-store-remote/hnix-store-remote.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions hnix-store-remote/tests/SerializeSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f3084b5

Please sign in to comment.