Skip to content

Commit

Permalink
Force stdout flush to fix #120
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrieco-tob committed Aug 9, 2018
1 parent e2e97c9 commit 215dd21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Echidna/Internal/JsonRunner.hs
Expand Up @@ -18,6 +18,7 @@ import Data.Aeson (ToJSON, encode)
import Data.ByteString.Lazy.Char8 (unpack)
import Data.Maybe (mapMaybe)
import GHC.Generics
import System.IO (hFlush, stdout)

import Hedgehog.Internal.Config
import Hedgehog.Internal.Gen (runDiscardEffect, runGenT)
Expand Down Expand Up @@ -66,6 +67,7 @@ checkGroup config (Group _ props) =
_ <- runTasks n props st noop noop $ \(name, prop) -> do
result <- checkProp 0 prop
putStrLn $ unpack $ encode (format name result)
hFlush stdout
pure ()

pure True
Expand Down

0 comments on commit 215dd21

Please sign in to comment.