diff --git a/test/integration/helpers.coffee b/test/integration/helpers.coffee index 03dc60ecb..0ffd74ee6 100644 --- a/test/integration/helpers.coffee +++ b/test/integration/helpers.coffee @@ -103,8 +103,7 @@ createServer = (options = {}) -> app.use(bodyParserInstance) app.use((req, res, next) -> recordServerRequest(serverRuntimeInfo, req) - res.type('json') - res.status(200) # sensible defaults, can be overriden + res.type('json').status(200) # sensible defaults, can be overriden next() ) app = https.createServer(getSSLCredentials(), app) if protocol is 'https'