Closed StarpTech closed 1 week ago
@StarpTech Thanks for the report. @ColinSullivan1 is going to help me out with this on windows as I don't have a windows setup. Thanks for the heads up.
Anyone working on it?
@StarpTech , yes, we are.
@ColinSullivan1 cool if you need any help dont hesitate to ask me. After this I can start with issue https://github.com/nats-io/node-nats/issues/108
@StarpTech Thanks, appreciate the offer, and we may take you up on that. My initial take here is there are two problems - first, mkdir -p reports/
is not friendly to windows - we may just suggest different instructions for running the tests on windows (likely mocha
as you have done). The second issue is the failing tests. I'm digging into those now.
@ColinSullivan1 you can use https://github.com/substack/node-mkdirp it common to use this for cross platform support.
E.g
"test:unit": "./node_modules/mkdirp reports/" ...
@StarpTech Much appreciated! We'll give that a shot.
Please don't let this block #108 - For testing your PR for #108, feel free to go ahead and write a test, and so long as that individual test passes for you under mocha
, you should be good to go. The basic tests are passing in your environment, and Travis CI will catch any bugs that would be masked by the test failures here. Beyond the problem with mkdir
, I'm fairly confident the test failures you are seeing here stem from the longer time it takes to establish TCP connections on Windows.
Thanks, Colin
@StarpTech , Just giving you an update - @aricart and I discussed this issue. We realize this is an issue, but believe that the problems lie in the tests themselves being run in a windows environment, rather than the node client itself. We have plans to address this, but in the meantime, are confident Travis CI will thoroughly test the node client. We'll leave this issue open until we come to a resolution.
@ColinSullivan I would agree when it works on a Windows CI but with this decision you ignore windows users. I created a nats project on windows and my test suite passed. It needs just more investigation. Thanks.
@StarpTech , I appreciate your concern! ...like I said, we do have plans to address this - we aren't ignoring windows users. It had been a number of days since the issue was updated and I was just reiterating that we do not feel this issue should block contributions until it's been resolved. This is certainly on our list of things to fix.
Hi @ColinSullivan1 sounds good but one advise I wouldn't use this driver when it breaks on my machine. I can estimate this issue but lots of people dont. I will have a look at this too, perhaps I can find the issues.
Any progress? 😱
Not yet - I'll see what I can do for v2.
My environment: Node 6.9.2 Windows 10 gnatsd-v0.9.4-windows-amd64
Im trying to run the test but Im facing with many issues
mocha --timeout 10000
and I have 25 failing tests.Errors: