mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 21:03:39 -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) ->
|
app.listen 3003, (error) ->
|
||||||
MockDocUpdaterServer.running = true
|
MockDocUpdaterServer.running = true
|
||||||
callback(error)
|
callback(error)
|
||||||
|
.on "error", (error) ->
|
||||||
|
console.error "error starting MockDocUpdaterServer:", error.message
|
||||||
|
process.exit(1)
|
||||||
|
|
||||||
|
|
||||||
sinon.spy MockDocUpdaterServer, "getDocument"
|
sinon.spy MockDocUpdaterServer, "getDocument"
|
|
@ -35,5 +35,9 @@ module.exports = MockWebServer =
|
||||||
app.listen 3000, (error) ->
|
app.listen 3000, (error) ->
|
||||||
MockWebServer.running = true
|
MockWebServer.running = true
|
||||||
callback(error)
|
callback(error)
|
||||||
|
.on "error", (error) ->
|
||||||
|
console.error "error starting MockWebServer:", error.message
|
||||||
|
process.exit(1)
|
||||||
|
|
||||||
|
|
||||||
sinon.spy MockWebServer, "joinProject"
|
sinon.spy MockWebServer, "joinProject"
|
Loading…
Reference in a new issue