provide a /oops-internal endpoint for testing uncaughtExceptions

This commit is contained in:
Brian Gough 2021-01-26 16:35:39 +00:00
parent fc11574698
commit f0b4f1238b

View file

@ -213,6 +213,12 @@ app.get('/oops', function (req, res, next) {
return res.send('error\n') return res.send('error\n')
}) })
app.get('/oops-internal', function (req, res, next) {
setTimeout(function () {
throw new Error('Test error')
}, 1)
})
app.get('/status', (req, res, next) => res.send('CLSI is alive\n')) app.get('/status', (req, res, next) => res.send('CLSI is alive\n'))
Settings.processTooOld = false Settings.processTooOld = false