git.iko.soy/distributed-process
on master help sign in
d-p-tests: Use line buffering in runTCP.
commit74401a317e609b5c4b5d789fafbc7a21c09b49ec authorFacundo Domínguez <facundo.dominguez@tweag.io> dateTue 16 Feb 2016, 10:40 (11 years ago) parentc1e565b
1 file changed+3
distributed-process-tests/tests/runTCP.hs+3
distributed-process-tests/tests/runTCP.hs+3
@@ -16,9 +16,12 @@ import Test.Framework (defaultMainWithArgs)
1616
1717import Control.Concurrent (threadDelay)
1818import System.Environment (getArgs)
19+import System.IO
1920
2021main :: IO ()
2122main = do
23+ hSetBuffering stdout LineBuffering
24+ hSetBuffering stderr LineBuffering
2225 Right (transport, internals) <-
2326 createTransportExposeInternals "127.0.0.1" "8080"
2427 defaultTCPParameters { transportConnectTimeout = Just 3000000 }