diff --git a/services/document-updater/test/acceptance/coffee/helpers/MockTrackChangesApi.coffee b/services/document-updater/test/acceptance/coffee/helpers/MockTrackChangesApi.coffee index d6c2e05b3b..95caead368 100644 --- a/services/document-updater/test/acceptance/coffee/helpers/MockTrackChangesApi.coffee +++ b/services/document-updater/test/acceptance/coffee/helpers/MockTrackChangesApi.coffee @@ -15,6 +15,9 @@ module.exports = MockTrackChangesApi = app.listen 3015, (error) -> throw error if error? + .on "error", (error) -> + console.error "error starting MockTrackChangesApi:", error.message + process.exit(1) MockTrackChangesApi.run() diff --git a/services/document-updater/test/acceptance/coffee/helpers/MockWebApi.coffee b/services/document-updater/test/acceptance/coffee/helpers/MockWebApi.coffee index f2b8bce318..fabd4587e8 100644 --- a/services/document-updater/test/acceptance/coffee/helpers/MockWebApi.coffee +++ b/services/document-updater/test/acceptance/coffee/helpers/MockWebApi.coffee @@ -40,6 +40,9 @@ module.exports = MockWebApi = app.listen 3000, (error) -> throw error if error? + .on "error", (error) -> + console.error "error starting MockWebApi:", error.message + process.exit(1) MockWebApi.run()