Commit eaa533d6 by Michael Mifsud

Merge pull request #888 from saper/b/killwatch

Kill watcher processes during test
parents 6c55239d 7108d5cc
......@@ -233,6 +233,7 @@ describe('cli', function() {
bin.stderr.once('data', function(data) {
assert(data.trim() === '=> changed: ' + src);
fs.unlinkSync(src);
bin.kill();
done();
});
......@@ -257,6 +258,7 @@ describe('cli', function() {
fs.appendFileSync(src, 'body {}');
setTimeout(function() {
assert.equal(didEmit, false);
bin.kill();
done();
fs.unlinkSync(src);
}, 200);
......@@ -277,6 +279,7 @@ describe('cli', function() {
bin.stdout.once('data', function(data) {
assert(data.trim() === 'body{background:white}');
fs.unlinkSync(src);
bin.kill();
done();
});
......@@ -299,6 +302,7 @@ describe('cli', function() {
bin.stdout.setEncoding('utf8');
bin.stdout.once('data', function(data) {
assert(data.trim() === 'body{background:white}');
bin.kill();
done();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment