Skip to content

Commit

Permalink
Support timeout in opts
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikNoren committed Jan 16, 2015
1 parent 00a8ba8 commit 7133ca5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function Test (name_, opts_, cb_) {
this._progeny = [];
this._ok = true;

if (args.opts.timeout !== undefined) {
this.timeoutAfter(args.opts.timeout);
}

for (var prop in this) {
this[prop] = (function bind(self, val) {
if (typeof val === 'function') {
Expand Down

0 comments on commit 7133ca5

Please sign in to comment.