Skip to content

Commit

Permalink
Fix up the test suite with the extra parameter to be run on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
ndmitchell committed May 28, 2012
1 parent dfcd724 commit 1d8745a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/suite/Snap/Internal/Http/Server/Tests.hs
Expand Up @@ -945,7 +945,7 @@ testSendFile = testCase "server/sendFile" $ do

where
serve = (httpServe 60 [HttpPort "*" port] Nothing "localhost"
Nothing Nothing
Nothing Nothing (const $ return ())
$ runSnap sendFileFoo)
`catch` \(_::SomeException) -> return ()

Expand Down Expand Up @@ -974,6 +974,7 @@ testServerStartupShutdown = testCase "server/startup/shutdown" $ do
"localhost"
(Just $ const (return ())) -- dummy logging
(Just $ const (return ())) -- dummy logging
(const $ return ())
(runSnap pongServer))
(killThread)
(\tid -> do
Expand Down Expand Up @@ -1013,6 +1014,7 @@ testServerShutdownWithOpenConns = testCase "server/shutdown-open-conns" $ do
"localhost"
Nothing
Nothing
(const $ return ())
(runSnap pongServer)

waitabit
Expand Down

0 comments on commit 1d8745a

Please sign in to comment.