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

Disable fsnotify recursive test under Darwin #6962

Merged
merged 1 commit into from
Apr 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions auditbeat/module/file_integrity/monitor/monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ func TestNonRecursive(t *testing.T) {
}

func TestRecursive(t *testing.T) {
if runtime.GOOS == "darwin" {
// This test races on Darwin because internal races in the kqueue
// implementation of fsnotify when a watch is added in response to
// a subdirectory created inside a watched directory.
// This race doesn't affect auditbeat because the file_integrity module
// under Darwin uses fsevents instead of kqueue.
t.Skip("Disabled on Darwin")
}
dir, err := ioutil.TempDir("", "monitor")
assertNoError(t, err)
// under macOS, temp dir has a symlink in the path (/var -> /private/var)
Expand Down