New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add {test,}withApplicationSettings #531
Conversation
withApplication mkApp action = do | ||
withApplication = withApplicationSettings defaultSettings | ||
|
||
-- | 'withApplication' with given 'Settings' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth including a note that any port provided in the Settings
value would be ignored.
Also, can you add a @since
comment for version 3.2.7 to this and the function added below, and update the ChangeLog.md
file?
@snoyberg I updated the PR, can you check again if everything is okay? |
@@ -61,7 +77,7 @@ testWithApplication mkApp action = do | |||
|
|||
data Waiter a | |||
= Waiter { | |||
notify :: a -> IO (), | |||
notify :: a -> IO (), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this part of the diff was accidentally added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was stylish-haskell-mode, fixed now. Thanks.
LGTM, just waiting on Travis before merging. |
Thanks for the quick turnaround on updating the PR. |
Thanks! |
Warp 3.2.7 has been released. |
withApplication
was usingdefaultSettings
implicitly, this patch implementswithApplicationSettings
andtestWithApplicationSettings
functions that runApplication
's with givenSettings
.Without this patch, I was unable to increase Warp's timeout on
testWithApplication
.