From f0b4f1238b4c608a0754ee9c36ce2df7f6e2bb80 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 26 Jan 2021 16:35:39 +0000 Subject: [PATCH] provide a /oops-internal endpoint for testing uncaughtExceptions --- services/clsi/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/clsi/app.js b/services/clsi/app.js index 280b869472..aee8d44832 100644 --- a/services/clsi/app.js +++ b/services/clsi/app.js @@ -213,6 +213,12 @@ app.get('/oops', function (req, res, next) { 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')) Settings.processTooOld = false