Permalink
Browse files

Now storing a stack trace for possible timeout errors.

  • Loading branch information...
1 parent d6014dc commit 42f7384dd63a375216dadd2d1941725f0d95bb91 @Yuffster committed May 30, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 describe.js
View
@@ -74,9 +74,10 @@
clearTimeout(timer);
}
+ var error = new Error("Test timeout after "+options.timeout+"ms");
timer = setTimeout(function() {
if (done) return;
- callback(new Error("Test timeout after "+options.timeout+"ms"));
+ callback(error);
done = true;
}, options.timeout);

0 comments on commit 42f7384

Please sign in to comment.