diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-04 17:06:36 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-04 17:27:01 -0800 |
commit | 79368a0ecf8ac4b950f5a3349c0281317c49cb09 (patch) | |
tree | 50a9dea10e63893113ad05080011c912a984c7ae /test | |
parent | af4b9599cb61baf3ae800b05d5649f6a4564cc2a (diff) | |
download | qtlocation-mapboxgl-79368a0ecf8ac4b950f5a3349c0281317c49cb09.tar.gz |
[test] Remove terminate-when-inactive behavior from the test server
It caused #3163.
Attempts at having the child exit automatically when the parent exits were stymied
by the fact that unix sucks: http://stackoverflow.com/q/284325/52207.
Diffstat (limited to 'test')
-rwxr-xr-x | test/storage/server.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/storage/server.js b/test/storage/server.js index cd8c5e3958..249c6a124b 100755 --- a/test/storage/server.js +++ b/test/storage/server.js @@ -9,19 +9,6 @@ var app = express(); // We're manually setting Etag headers. app.disable('etag'); -// Terminate after a certain time of inactivity. -function terminate() { - console.warn('Server terminated due to inactivity'); - process.exit(0); -}; -var inactivity = 5000; // milliseconds -var timeout = setTimeout(terminate, inactivity); -app.use(function(req, res, next) { - clearTimeout(timeout); - timeout = setTimeout(terminate, inactivity); - next(); -}); - app.get('/test', function (req, res) { if (req.query.modified) { res.setHeader('Last-Modified', (new Date(req.query.modified * 1000)).toUTCString()); |