From 31ef56ff8e713440807ad1b3c1dafa427dfd213f Mon Sep 17 00:00:00 2001 From: "David Humphrey (:humph) david.humphrey@senecacollege.ca" Date: Wed, 5 Mar 2014 22:02:05 -0500 Subject: [PATCH] Increase the test timeout threshold from 2s to 5s (for longer db operations), with a slow test warning of 250ms --- tests/require-config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/require-config.js b/tests/require-config.js index 5dfdeb7..2415177 100644 --- a/tests/require-config.js +++ b/tests/require-config.js @@ -78,8 +78,9 @@ require.config(config); assert = chai.assert; expect = chai.expect; -// We need to setup describe() support before loading tests -mocha.setup("bdd"); +// We need to setup describe() support before loading tests. +// Use a test timeout of 5s and a slow-test warning of 250ms +mocha.setup("bdd").timeout(5000).slow(250); require(["tests/test-manifest"], function() { window.onload = function() {