-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback not fired if we don't have write permissions for the destination #25
Comments
I dropped this test in and it failed for me too. I'll add this to the official test suite and work on a fix for it in the morning. |
I've added the skipped test while I figure out where in the stack that it's failing: |
Published this in |
Thanks for the quick response! The fix seems to work when I include Here's the output: $ node --version
v0.10.44
$ npm --version
2.15.0
$ nvm --version
0.31.0
$ npm test
...
error handling
✓ should fail on non-existant from dir
✓ should fail on non-file
✓ should return an error if a directory is to write over an existing file with the same name
1) should fail without write permissions
validations
2) should copy empty directory
3) should not delete existing folders in out dir
4) should copy one file
5) should not copy because file exists
should work as a standalone bin
6) "before all" hook
29 passing (5m)
6 failing
1) cpr test suite error handling should fail without write permissions:
Error: timeout of 55000ms exceeded. Ensure the done() callback is being called in this test.
2) cpr test suite validations should copy empty directory:
Error: timeout of 55000ms exceeded. Ensure the done() callback is being called in this test.
3) cpr test suite validations should not delete existing folders in out dir:
Error: timeout of 55000ms exceeded. Ensure the done() callback is being called in this test.
4) cpr test suite validations should copy one file:
Error: timeout of 55000ms exceeded. Ensure the done() callback is being called in this test.
5) cpr test suite validations should not copy because file exists:
Error: timeout of 55000ms exceeded. Ensure the done() callback is being called in this test.
6) cpr test suite should work as a standalone bin "before all" hook:
Error: spawn EMFILE
at errnoException (child_process.js:1011:11)
at ChildProcess.spawn (child_process.js:958:11)
at exports.spawn (child_process.js:746:9)
at Object.exports.execFile (child_process.js:628:15)
at exports.exec (child_process.js:591:18)
at Context.<anonymous> (tests/full.js:376:13) |
Hmmm, the timeout issue is likely just slowness from the machine it's running on. Can you try bumping up the timeout to see if that makes them pass? They are copying a massive amount of data. I probably should use a subtree of it so that it's not copying so much data. As for that last one I'll take a look, my gut tells me it's trying to open the |
I increased the timeout length to five minutes and it's still failing with the same errors. I also experimented a bit more with my test project. Trying to copy a small directory with a few files worked fine, but with the For reference, the machine I'm testing on is running Fedora 23 with an Intel Core 2 Quad Q6600 CPU @ 2.40GHz, 4 GB of RAM, and a 7200 RPM SATA 2.0 disk. |
You can observe this by adding the following test to
tests/full.js
:npm test
outputs:The text was updated successfully, but these errors were encountered: