Closed angelochen960 closed 12 years ago
did you use option --timeout
?
Hey i am also getting exactly same error, Any help on this topic. i tried setting timeout using req.setTimeout(30000, function(err){}); not sure where to use --timeout in options do we have timeout key in options json?
@vduggirala $ mocha test.js --timeout 30000
https1.js:
https2.js:
got error:
1) test https1 #https1 should return response object: Error: timeout of 2000ms exceeded at Object. (/usr/local/lib/node_modules/mocha/lib/runnable.js:126:14)
at Timer.ontimeout (timers.js:84:39)
mocha --version 1.2.0