Merge remote-tracking branch 'origin/master' into jpa-entry-point-cleanup

This commit is contained in:
Jakob Ackermann
2020-04-03 14:05:36 +02:00
6 changed files with 10 additions and 12 deletions

View File

@@ -202,9 +202,9 @@ describe('DockerRunner', function() {
}
if (firstTime) {
firstTime = false
return callback(
new Error('HTTP code is 500 which indicates error: server error')
)
const error = new Error('(HTTP code 500) server error - ...')
error.statusCode = 500
return callback(error)
} else {
return callback(null, this.output)
}

View File

@@ -36,6 +36,7 @@ describe('ResourceWriter', function() {
'./OutputFileFinder': (this.OutputFileFinder = {}),
'logger-sharelatex': { log: sinon.stub(), err: sinon.stub() },
'./Metrics': (this.Metrics = {
inc: sinon.stub(),
Timer: (Timer = (function() {
Timer = class Timer {
static initClass() {