Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

timeout test

Tj Holowaychuk076466a5a638
diff --git a/lib/test.js b/lib/test.js
index d51de269..32c1443c 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -18,7 +18,7 @@ function Test(title, fn) {
this.fn = fn;
this.async = !! fn.length;
this.sync = ! this.async;
- this.timeout(5000);
+ this.timeout(2000);
}
/**
diff --git a/test/unit/timeout.js b/test/unit/timeout.js
new file mode 100644
index 00000000..11481600
--- /dev/null
+++ b/test/unit/timeout.js
@@ -0,0 +1,8 @@
+
+describe('timeouts', function(){
+ it('should error on timeout', function(done){
+ // uncomment
+ // setTimeout(done, 3000);
+ done();
+ });
+});
\ No newline at end of file