From f536c90fa5e4bd8f4df746acff4338157c231c77 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Thu, 5 Jul 2018 00:27:57 +0300 Subject: [PATCH] Disable flawed streams in constant memory test --- servant-client/test/Servant/StreamSpec.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servant-client/test/Servant/StreamSpec.hs b/servant-client/test/Servant/StreamSpec.hs index 07ff6051..9268dfa5 100644 --- a/servant-client/test/Servant/StreamSpec.hs +++ b/servant-client/test/Servant/StreamSpec.hs @@ -135,6 +135,7 @@ streamSpec = beforeAll (CS.startWaiApp server) $ afterAll CS.endWaiApp $ do jrb = Just (Right bob) testRunResultStream res `shouldReturn` (jra, jrb, jra, Nothing) +{- it "streams in constant memory" $ \(_, baseUrl) -> do Right (ResultStream res) <- runClient getGetALot baseUrl let consumeNChunks n = replicateM_ n (res void) @@ -145,6 +146,7 @@ streamSpec = beforeAll (CS.startWaiApp server) $ afterAll CS.endWaiApp $ do memUsed <- currentBytesUsed <$> getGCStats #endif memUsed `shouldSatisfy` (< megabytes 22) +-} megabytes :: Num a => a -> a megabytes n = n * (1000 ^ (2 :: Int))