From 7c02c6d31ddd6bc85fac1b1beae625e53d6cdb96 Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Sat, 11 Jul 2015 13:40:09 +0200 Subject: [PATCH] Add test app checks-root --- tests/apps/checks-root/CHECKS | 2 ++ tests/apps/checks-root/index.js | 11 +++++++++++ tests/apps/checks-root/package.json | 14 ++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 tests/apps/checks-root/CHECKS create mode 100644 tests/apps/checks-root/index.js create mode 100644 tests/apps/checks-root/package.json diff --git a/tests/apps/checks-root/CHECKS b/tests/apps/checks-root/CHECKS new file mode 100644 index 000000000..4bc292597 --- /dev/null +++ b/tests/apps/checks-root/CHECKS @@ -0,0 +1,2 @@ +ATTEMPTS=2 +/ diff --git a/tests/apps/checks-root/index.js b/tests/apps/checks-root/index.js new file mode 100644 index 000000000..67ba7ab2a --- /dev/null +++ b/tests/apps/checks-root/index.js @@ -0,0 +1,11 @@ +var express = require('express'); +var app = express(); + +app.get('/', function(req, res) { + res.sendStatus(404); +}); + +var port = process.env.PORT || 5000; +app.listen(port, function() { + console.log('Listening on port ' + port); +}); diff --git a/tests/apps/checks-root/package.json b/tests/apps/checks-root/package.json new file mode 100644 index 000000000..bcf229757 --- /dev/null +++ b/tests/apps/checks-root/package.json @@ -0,0 +1,14 @@ +{ + "name": "node-example", + "version": "0.0.1", + "dependencies": { + "express": "4.x" + }, + "engines": { + "node": "0.12.x", + "npm": "2.x" + }, + "scripts": { + "start": "node index.js" + } +}