Merge pull request #79 from sharelatex/bg-fix-listen-in-acceptance-tests

exit if mock server fails to start
This commit is contained in:
Brian Gough
2017-10-25 09:13:33 +01:00
committed by GitHub

View File

@@ -30,7 +30,10 @@ module.exports = Client =
express = require("express")
app = express()
app.use express.static(directory)
app.listen(port, host)
app.listen(port, host).on "error", (error) ->
console.error "error starting server:", error.message
process.exit(1)
syncFromCode: (project_id, file, line, column, callback = (error, pdfPositions) ->) ->
request.get {