Răsfoiți Sursa

[monorepo] remove endpoints for generating a fake error (#31679)

GitOrigin-RevId: d424881e6ebca157b81344705670021677f856de
Jakob Ackermann 5 luni în urmă
părinte
comite
209f660435
2 a modificat fișierele cu 0 adăugiri și 16 ștergeri
  1. 0 11
      services/clsi/app.js
  2. 0 5
      services/project-history/app/js/Router.js

+ 0 - 11
services/clsi/app.js

@@ -198,17 +198,6 @@ app.get(
   }
 )
 
-app.get('/oops', function (req, res, next) {
-  logger.error({ err: 'hello' }, 'test error')
-  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

+ 0 - 5
services/project-history/app/js/Router.js

@@ -1,4 +1,3 @@
-import OError from '@overleaf/o-error'
 import * as HttpController from './HttpController.js'
 
 export function initialize(app) {
@@ -88,10 +87,6 @@ export function initialize(app) {
 
   app.get('/status', (req, res, next) => res.send('project-history is up'))
 
-  app.get('/oops', function (req, res, next) {
-    throw new OError('dummy test error')
-  })
-
   app.get('/check_lock', HttpController.checkLock)
 
   app.get('/health_check', HttpController.healthCheck)