From 7133ca5fdba8df304f259342468fb143c7dcd565 Mon Sep 17 00:00:00 2001 From: Fredrik Noren Date: Fri, 16 Jan 2015 14:29:09 -0500 Subject: [PATCH] Support timeout in opts --- lib/test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/test.js b/lib/test.js index 3a8d60bd..d105e299 100644 --- a/lib/test.js +++ b/lib/test.js @@ -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') {