Commit 006a680d authored by Yiannis Tsiouris's avatar Yiannis Tsiouris

Fix indentation + warnings

parent 7dd65e2f
import Control.Concurrent.MVar (MVar, putMVar, newEmptyMVar, takeMVar) import Control.Concurrent.MVar (MVar, putMVar,
newEmptyMVar, takeMVar)
import Control.Distributed.Process import Control.Distributed.Process
import Control.Distributed.Process.Node import Control.Distributed.Process.Node
import qualified Network.Transport as NT (Transport) import qualified Network.Transport as NT (Transport)
import Network.Transport.TCP import Network.Transport.TCP
import Prelude hiding (seq) import Prelude hiding (seq)
import Test.Framework (Test, testGroup, defaultMain) import Test.Framework (Test, testGroup,
defaultMain)
import Test.Framework.Providers.HUnit (testCase) import Test.Framework.Providers.HUnit (testCase)
import Test.HUnit (Assertion, assertFailure) import Test.HUnit (Assertion)
import Test.HUnit.Base (assertBool) import Test.HUnit.Base (assertBool)
import Bench (seq) import Bench (seq)
...@@ -17,18 +19,18 @@ import Utils ...@@ -17,18 +19,18 @@ import Utils
testSeqShort :: TestResult String -> Process () testSeqShort :: TestResult String -> Process ()
testSeqShort result = do testSeqShort result = do
r <- seq gg13 11 x <- seq gg13 11
stash result r stash result x
testSeqIntermediate :: TestResult String -> Process () testSeqIntermediate :: TestResult String -> Process ()
testSeqIntermediate result = do testSeqIntermediate result = do
r <- seq gg124 157 x <- seq gg124 157
stash result r stash result x
testSeqLong :: TestResult String -> Process () testSeqLong :: TestResult String -> Process ()
testSeqLong result = do testSeqLong result = do
r <- seq gg1245 157 x <- seq gg1245 157
stash result r stash result x
-- Batch the tests -- Batch the tests
...@@ -36,17 +38,11 @@ tests :: LocalNode -> [Test] ...@@ -36,17 +38,11 @@ tests :: LocalNode -> [Test]
tests localNode = [ tests localNode = [
testGroup "Sequential Tests" [ testGroup "Sequential Tests" [
testCase "testSeqShort" testCase "testSeqShort"
(delayedAssertion (delayedAssertion "short" localNode "{size,10}" testSeqShort)
"short"
localNode "{size,10}" testSeqShort)
, testCase "testSeqIntermediate" , testCase "testSeqIntermediate"
(delayedAssertion (delayedAssertion "intermediate" localNode "{size,133}" testSeqIntermediate)
"intermediate"
localNode "{size,133}" testSeqIntermediate)
, testCase "testSeqLong" , testCase "testSeqLong"
(delayedAssertion (delayedAssertion "long" localNode "{size,134}" testSeqLong)
"long"
localNode "{size,134}" testSeqLong)
] ]
] ]
...@@ -91,7 +87,7 @@ assertComplete msg mv a = do ...@@ -91,7 +87,7 @@ assertComplete msg mv a = do
-- | Given a @builder@ function, make and run a test suite on a single transport -- | Given a @builder@ function, make and run a test suite on a single transport
testMain :: (NT.Transport -> IO [Test]) -> IO () testMain :: (NT.Transport -> IO [Test]) -> IO ()
testMain builder = do testMain builder = do
Right (transport, _) <- createTransportExposeInternals Right (transport, _) <-
"127.0.0.1" "10501" defaultTCPParameters createTransportExposeInternals "127.0.0.1" "10501" defaultTCPParameters
testData <- builder transport testData <- builder transport
defaultMain testData defaultMain testData
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment