Skip to content

armgit / mocha

Public Imported from GitHub
0

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

moved comment

Craig Taubcf52904cad95
diff --git a/test/integration/options.spec.js b/test/integration/options.spec.js
index f9690bda..7da23c1a 100644
--- a/test/integration/options.spec.js
+++ b/test/integration/options.spec.js
@@ -508,12 +508,11 @@ describe('options', function() {
describe('--watch', function() {
describe('with watch enabled', function() {
it('should return correct output when watch process is terminated', function(done) {
- // After the process ends, this callback is ran
-
this.timeout(0);
this.slow(3000);
// executes Mocha in a subprocess
var mocha = runRaw('exit.fixture.js', ['--watch'], function(err, data) {
+ // After the process ends, this callback is ran
clearTimeout(t);
if (err) {
done(err);