Skip to content

Commit

Permalink
Set enough capabilities for the parallel tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
merijn committed Dec 1, 2020
1 parent df80ac3 commit 958a741
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion broadcast-chan-tests/BroadcastChan/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module BroadcastChan.Test
) where

import Prelude hiding (seq)
import Control.Concurrent (threadDelay)
import Control.Concurrent (setNumCapabilities, threadDelay)
import Control.Concurrent.Async (wait, withAsync)
import Control.Concurrent.MVar
import Control.Concurrent.STM
Expand Down Expand Up @@ -337,6 +337,7 @@ genStreamTests name seq par = askOption $ \(SlowTests slow) ->
-- | Run a list of 'TestTree'​'s and group them under the specified name.
runTests :: String -> [TestTree] -> IO ()
runTests name tests = do
setNumCapabilities 5
setEnv "TASTY_NUM_THREADS" "100"
travisTestReporter travisConfig ingredients $ testGroup name tests
where
Expand Down

0 comments on commit 958a741

Please sign in to comment.