Skip to content

Commit

Permalink
remove healthcheck failure simulation
Browse files Browse the repository at this point in the history
 🐿 v2.5.16
  • Loading branch information
wheresrhys committed Nov 29, 2017
1 parent b604fbf commit 12b82a1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 137 deletions.
6 changes: 0 additions & 6 deletions main.js
Expand Up @@ -21,16 +21,10 @@ const robots = require('./src/middleware/robots');
const security = require('./src/middleware/security');
const vary = require('./src/middleware/vary');
const logVary = require('./src/middleware/log-vary');

// Health check failure simulation
const checkFailing = require('./src/lib/check-failing');

const teapot = fs.readFileSync(path.join(__dirname, 'src/assets/teapot.ascii'), 'utf8');

const getAppContainer = options => {

checkFailing.init();

options = Object.assign({}, {
withBackendAuthentication: true,
withFlags: false,
Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -13,7 +13,6 @@
"@financial-times/n-flags-client": "^9.0.0",
"@financial-times/n-logger": "^5.0.0",
"@financial-times/n-raven": "^3.0.0",
"date-fns": "^1.3.0",
"debounce": "^1.0.0",
"denodeify": "^1.2.1",
"express": "^4.14.0",
Expand Down
127 changes: 0 additions & 127 deletions src/lib/check-failing.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib/health-checks.js
@@ -1,4 +1,3 @@
const checkFailing = require('./check-failing');
const errorRateCheck = require('./error-rate-check');

module.exports = (app, options, meta) => {
Expand Down Expand Up @@ -32,8 +31,6 @@ module.exports = (app, options, meta) => {
});
}

checkFailing.fakeCheckFailuresIfApplicable(options.systemCode, checks, req, res);

res.set('Content-Type', 'application/json');
res.send(JSON.stringify({
schemaVersion: 1,
Expand Down

0 comments on commit 12b82a1

Please sign in to comment.