mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
exit if mock servers fail to start
This commit is contained in:
parent
c1b5e1d04c
commit
168d646328
2 changed files with 10 additions and 2 deletions
|
@ -38,5 +38,9 @@ module.exports = MockDocUpdaterServer =
|
|||
app.listen 3003, (error) ->
|
||||
MockDocUpdaterServer.running = true
|
||||
callback(error)
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockDocUpdaterServer:", error.message
|
||||
process.exit(1)
|
||||
|
||||
|
||||
sinon.spy MockDocUpdaterServer, "getDocument"
|
|
@ -35,5 +35,9 @@ module.exports = MockWebServer =
|
|||
app.listen 3000, (error) ->
|
||||
MockWebServer.running = true
|
||||
callback(error)
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockWebServer:", error.message
|
||||
process.exit(1)
|
||||
|
||||
|
||||
sinon.spy MockWebServer, "joinProject"
|
Loading…
Reference in a new issue