-
Notifications
You must be signed in to change notification settings - Fork 222
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
Tests on OSX. #27
Tests on OSX. #27
Conversation
Back from holiday! This looks awesome :) I'll run/test on Linux and |
latency: 0.1, | ||
flags: fs::kFSEventStreamCreateFlagFileEvents, | ||
latency: 0.0, | ||
flags: fs::kFSEventStreamCreateFlagFileEvents | fs::kFSEventStreamCreateFlagNoDefer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, can you explain what that change does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defer will wait several event to aggregate them and deliver to the callback. This can mess tests (at least) and this seems to be a reasonable default, until somebody tells us this messes things. Same goes with latency
.
We also need to have @jakerr added to the Cargo.toml. |
And finally, could you rebase on top of master? I've added OS X Travis CI testing, let's see what that does. |
Tests now pass on OSX (necessary to reproduce #23 ).
validate_recv
method to match results in test cases and timeout (solves Tests hang if no events are received #26 ).validate_recv
to support aggregated events:op::CREATE|op::REMOVE
will match[op::CREATE, op::REMOVE]
(useful when your observing api can split or merge nearby events). Fixes a huge issue for OSX testing, has probably no impact on Linux.pollwatch
test is now broken on OSX because of this full path stuff (worth another bug ? sibling of Errors when watcher backend is given broken symlinks #21 ?)