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

filewatcher: fix a bug with maxDepth and comparing event.Op #157

Merged
merged 3 commits into from
Oct 25, 2020

Conversation

dnephin
Copy link
Member

@dnephin dnephin commented Oct 24, 2020

also, some tests

@dnephin dnephin added the bug Something isn't working label Oct 24, 2020
Previously it was matching all events, which caused problems in editors
like vim, which rename the file. It seemed to be running before the file
was finished writing.
Previously filewatcher.Watch would recurse into all directories.

Also fix a bug where max depth of the directory walk was including the root directory path in the depth.

Adds tests for a couple functions
@dnephin dnephin merged commit cde872b into gotestyourself:master Oct 25, 2020
@dnephin dnephin deleted the fix-watch branch October 25, 2020 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant