-
Notifications
You must be signed in to change notification settings - Fork 30k
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
test,fs: test watch of file and directory #13251
Conversation
OS X stress test failed. (You will probably want to cancel it so it doesn't keep that host from being used for other test runs.) I'm pretty sure this issue isn't about removing files but is instead about an OS-specific race condition in file watching. See #13248 (comment) |
Ack. Stopped. But this PR is good to have anyway, no? |
We don't generally have tests clean up after themselves. I suppose exceptions can be made for tests that generate absurdly large files or that mess with file permissions. But generally, we don't do it because it's the responsibility of the test using If there's some sort of subtlety with file watchers that makes cleaning up the file a Good Thing, then sure. I'm not aware of that, though, so you'll have to point me in the right direction to get me on board. :-D |
On windows when there is a subdirectory in the Error: ENOTEMPTY: directory not empty, rmdir 'D:\code\node-cur\test\tmp'
at Object.fs.rmdirSync (fs.js:856:18)
at rmdirSync (D:\code\node-cur\test\common\index.js:152:10)
at rimrafSync (D:\code\node-cur\test\common\index.js:122:7)
at Object.exports.refreshTmpDir (D:\code\node-cur\test\common\index.js:158:3)
at Object.<anonymous> (D:\code\node-cur\test\parallel\test-fs-watchfile.js:39:8) |
Odd, Line 136 in fccc0bf
|
And I've never seen this Windows issue on CI. And no one has ever reported it except @refack as far as I know. I'm sure it's happening, but I suspect the cause is something specific and/or peculiar... |
Ya'll are right. I put a trace on, and found It's a local process ( |
Removed calls to |
Found to be unnecessary. |
cleanup before and after test-fs-watchfile
Maybe fix: #13248
Maybe fix: #13377
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test,fs