@@ -10,7 +10,6 @@ import qualified Data.Text as T
1010import qualified Network.Wai as W
1111import qualified Network.Wai.Handler.Warp as W
1212
13- import Control.Concurrent (threadDelay )
1413import Control.Monad (join )
1514import Control.Monad.IO.Class
1615import Data.Aeson
@@ -33,7 +32,6 @@ spec = before getSettingsAndItemRef $
3332 (req GET url NoReqBody bsResponse $ port warpPort)
3433 responseStatusCode response `shouldBe` 200
3534 responseBody response `shouldBe` " OK"
36- threadDelay 500
3735 readIORef itemRef `shouldReturn` Nothing
3836
3937 context " when the response status code is not 200" $
@@ -44,7 +42,6 @@ spec = before getSettingsAndItemRef $
4442 (defaultHttpConfig { httpConfigCheckResponse = \ _ _ _ -> Nothing })
4543 (req GET url NoReqBody bsResponse $ port warpPort)
4644 response `shouldBe` " Something went wrong"
47- threadDelay 500
4845 let portAsText = T. pack $ show warpPort
4946 join . fmap itemRequest <$> readIORef itemRef `shouldReturn` Just
5047 ( Request
@@ -75,7 +72,7 @@ withApp
7572 -> IO a
7673withApp f (settings, itemRef) = do
7774 let waiSettings = W. setOnException
78- (rollbarOnExceptionWith (createItemFake itemRef) settings)
75+ (rollbarOnExceptionWith id (createItemFake itemRef) settings)
7976 W. defaultSettings
8077 W. withApplicationSettings waiSettings (return app) $ f itemRef
8178
0 commit comments