Skip to content
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

Make awf and cwd options compatibles #392

Merged
merged 2 commits into from
Nov 6, 2015
Merged

Conversation

nono
Copy link
Contributor

@nono nono commented Nov 6, 2015

Before this commit, when awaitWriteFinish and cwd options were enabled at the same time and cwd was not the current directory, no add events were fired. It was because the fs.stat failed in awaitWriteFinish.

@@ -1392,6 +1392,21 @@ function runTests(options) {
})();
});
});
it('should be compatible with the cwd option', function(done) {
var spy = sinon.spy();
var testPath = getFixturePath('awf_cwd/awf_cwd.txt');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When introducing a new fixture file to the tests it needs to be added to the clean function at the top. Or you could change this to reuse paths that are already on there.

This is likely what caused the tests to explode.

@nono
Copy link
Contributor Author

nono commented Nov 6, 2015

@es128 yes, it should be green now.

@es128
Copy link
Collaborator

es128 commented Nov 6, 2015

The failures are the same problematic test that's failing regardless of this PR. Haven't solved it yet, but anyway - doesn't need to hold this one up

  1. chokidar polling watch options awaitWriteFinish should not raise any event for a file that was deleted before fully written:

Thanks for catching this issue and providing a test & fix!

es128 added a commit that referenced this pull request Nov 6, 2015
Make awf and cwd options compatibles
@es128 es128 merged commit f09d413 into paulmillr:master Nov 6, 2015
taratatach pushed a commit to taratatach/chokidar that referenced this pull request Oct 2, 2023
updating workflow to hopefully reenable publishing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants