Permalink
Browse files

Move the timeout to the conf object where it belongs.

  • Loading branch information...
1 parent 4c8fc15 commit 6c6c5b3413a92bd232e5ac947969e4312f87cb0c @isaacs isaacs committed May 2, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 example/test/test-example.js
@@ -172,9 +172,8 @@ test("meta-tests", function (t) {
// t.timesOut() wraps a child test and succeeds if it times out.
// if t.end() is called, or if a plan is completed, then it fails.
- t.timesOut(t.test("this should timeout", function (t) {
- // set the timeout really low so that it will not take forever.
- t.timeout = 1
+ // set the timeout really low so that it will not take forever.
+ t.timesOut(t.test("this should timeout", { timeout: 1 }, function (t) {
t.ok(true, "assert true")
// t.end() never called.
}))

0 comments on commit 6c6c5b3

Please sign in to comment.