mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-28 23:02:23 +00:00
Merge pull request #74 from sharelatex/bg-fix-listen-in-acceptance-tests
exit if mock servers fail to start
This commit is contained in:
commit
5999284143
2 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue