Skip to content

Commit

Permalink
fix -t 0 behavior; closes #1446
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hiller committed Dec 11, 2014
1 parent 809f078 commit dd0a811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Suite.prototype.clone = function(){

Suite.prototype.timeout = function(ms){
if (0 == arguments.length) return this._timeout;
if (ms === 0) this._enableTimeouts = false;
if (ms.toString() === '0') this._enableTimeouts = false;
if ('string' == typeof ms) ms = milliseconds(ms);
debug('timeout %d', ms);
this._timeout = parseInt(ms, 10);
Expand Down

0 comments on commit dd0a811

Please sign in to comment.