From 67f8b37562beeb830a0762ff90de89eba2fa8634 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Mon, 27 Oct 2014 15:22:17 -0700 Subject: [PATCH] The elapsed time in milliseconds can be 0 (less than 1 ms) --- test/app.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/app.test.js b/test/app.test.js index 80a307ba..a7b2710f 100644 --- a/test/app.test.js +++ b/test/app.test.js @@ -281,7 +281,7 @@ describe('app', function() { var elapsed = Date.now() - Number(new Date(res.body.started)); // elapsed should be a positive number... - assert(elapsed > 0); + assert(elapsed >= 0); // less than 100 milliseconds assert(elapsed < 100);