-
-
Notifications
You must be signed in to change notification settings - Fork 188
Watcher test issues in Linux #122
Comments
So what do you propose to enhance the tests ? |
Sorry for the delay with this; I'm going to paste the changes I made so they are not lost and a brain dump. The regarding the following line, I know you mention you didn't write the test however I would be interested if you think a failed watcher should be killed? If that is the case then I think the code for that isn't working with Linux correctly.
The changes I made mostly hang off just killing the listeners aggressively, however as I would like to get to the root of the problem I'm not sure the following are where cssnext should be doing:
Killing in the name of:
Numbering plans:
Linux seemed to not wait around for file testing:
I'll await feedback and if you are ok with them, I can mop them up into a merge. |
This test We already plan 5 tests from what I can read. If your function helps to kill all childs, maybe it's the solution. Did you make some debug to see if we actually have other child process to kill ? Also I am considering changing watcher because of #123, maybe that can helps to solve this issue ? |
up :) |
Whoops sorry, will look into this further soon. Yup I wasn't certain if it was actually getting killed in the watcher code (Last time I checked I couldn't see the code that did that). Yeah certainly as I think the issue is that there is no code killing it correctly, either linux is wrong or that test is. |
Any updates on this ? Otherwise I will end up by closing this issue (not even sure why...) |
Not relevant anymore. cssnext is now postcss-cssnext. cssnext is deprecated. See postcss-cssnext migration guide http://cssnext.io/postcss/ |
So the tests don't run correctly for the watcher code in Linux, I'm either getting:
The test in issue is this: test/cli.watcher.js
Killing the processes using the method mentioned here solves the issues:
http://krasimirtsonev.com/blog/article/Nodejs-managing-child-processes-starting-stopping-exec-spawn
However this causes the following line of the test to fail (Which I can't actually see should ever reliably pass):
The text was updated successfully, but these errors were encountered: