From 83234e20c65a53358bdcdd51a43c0d484b73c1dd Mon Sep 17 00:00:00 2001 From: Aseem Kishore Date: Sun, 9 Oct 2011 23:18:00 -0700 Subject: [PATCH] Tweak test server to reveal concurrency bug. --- test/app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.