-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update process spawning in coverage.js for mocha 2.2.x #746
Conversation
Update process spawning in coverage.js for mocha 2.2.x
Thanks @danielstjules! 👍 🎉 |
@danielstjules, @dougwilson, |
Have you tried bumping up the timeouts for those tests? Also, it might be worth setting up a branch that watches stdout and stderr for those child processes. See if the child process is doing anything when running on appveyor. |
I'll take a closer look soon, but a timeout bump may help, since it sometimes seems like AppVeyor does execute a bit slow, so since the timeouts are based on wall clock time and not CPU time, it can be easy to trip them on a slow environment. Another possible thing to try locally is just to run your tests piped to |
Thanks guys. I tested with this diff: diff --git a/test/cli.js b/test/cli.js
index 78edace..f9c1d3c 100644
--- a/test/cli.js
+++ b/test/cli.js
@@ -7,6 +7,8 @@ var assert = require('assert'),
fixture = path.join.bind(null, __dirname, 'fixtures');
describe('cli', function() {
+ this.timeout(0);
+
describe('node-sass < in.scss', function() {
it('should read data from stdin', function(done) {
var src = fs.createReadStream(fixture('simple/index.scss')); (disabling suite-specific timeout) and the result is a never-ending failure: https://ci.appveyor.com/project/am11/node-sass/build/job/36c5pdnjvexmjd4n. |
I don't see you listening to the Lines 135 to 152 in c97411e
|
Is it necessary? We are using |
Right, but that's the test it's stuck on. Clearly if the child process never sends data (perhaps because of a test failure), then that test will hang forever, which is what's currently happening. |
@dougwilson, tried both |
You need to listen on thie child process, not the stream. i.e. |
Sorry I missed that and thanks for the link! 8-) |
Ah, gotcha. I just realized you're calling |
@dougwilson good catch, I have added necessary kills in #888. |
Correct output for unary operation on strings
Bumps mocha to 2.2.1, and fixes the error highlighted in mochajs/mocha#1585: