Skip to content

Commit

Permalink
Stream 10 M response in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed May 25, 2017
1 parent b73039c commit 5f3ee9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httpbin-tests/Network/HTTP/Req/ConduitSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ spec = do
void (req POST (httpbin /: "post")
(ReqBodySource size src) ignoreResponse mempty) :: IO ()

describe "streaming 100 M response" $
describe "streaming 10 M response" $
it "works" $ do
let tempi :: (Handle -> IO ()) -> IO ()
tempi f = withSystemTempFile "req-conduit" (const f)
tempi $ \h ->
runConduitRes $ do
let size :: Int
size = 100 * 1024 * 1024
size = 10 * 1024 * 1024
req' GET (httpbin /: "stream-bytes" /~ size) NoReqBody
httpSource mempty =$= CB.sinkHandle h

Expand Down

0 comments on commit 5f3ee9c

Please sign in to comment.