diff --git a/test/app.js b/test/app.js index 5480903..5b4adb0 100644 --- a/test/app.js +++ b/test/app.js @@ -11,7 +11,10 @@ app.set('view engine', 'html'); app.register('.html', require('ejs')); app.get('/', function (req, res) { - res.render('child'); + // create an artificial delay to test concurrency + setTimeout(function () { + res.render('child'); + }, 1000); }); // since this is a test server, don't listen -- just return the server.