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

exit if mock servers fail to start
This commit is contained in:
Brian Gough 2017-10-25 09:14:29 +01:00 committed by GitHub
commit 5999284143
2 changed files with 8 additions and 1 deletions

View file

@ -8,5 +8,8 @@ module.exports = MockDocUpdaterApi =
app.listen 3003, (error) ->
throw error if error?
.on "error", (error) ->
console.error "error starting MockDocUpdaterApi:", error.message
process.exit(1)
MockDocUpdaterApi.run()

View file

@ -24,6 +24,10 @@ module.exports = MockDocStoreApi =
app.listen 3016, (error) ->
throw error if error?
.on "error", (error) ->
console.error "error starting MockDocStoreApi:", error.message
process.exit(1)
MockDocUpdaterApi.run()
MockDocStoreApi.run()