Name: js-handler/node_modules/nodeunit/node_modules/tap/test/independent-timeouts.js
| 1: | // https://github.com/isaacs/node-tap/issues/23 |
| 2: | |
| 3: | var tap = require("../") |
| 4: | , test = tap.test |
| 5: | |
| 6: | test("finishes in time", {timeout: 500}, function(t) { |
| 7: | setTimeout(function () { |
| 8: | t.end(); |
| 9: | }, 300); |
| 10: | }) |
| 11: | test("finishes in time too", {timeout: 500}, function(t) { |
| 12: | setTimeout(function () { |
| 13: | t.end(); |
| 14: | }, 300); |
| 15: | }) |
