It seems like there is a problem with fsevents when dealing with a large amount
of files on OSX sierra this added test fails reliably on mac Macbook Pro, with
the error
To test this up the count of files in filemonitor_test.TestFileMonitorFiles,
to something like 5000 and the error will show up in the log when running
make test-go.
To fix this the proposed quick solution is to on OSX monitor directories instead
of files, when a file is added to the watch list compute the directory it is
contained in and monitor this directory via FSEvents. This can cause more
restarts than before.
It seems like there is a problem with fsevents when dealing with a large amount of files on OSX sierra this added test fails reliably on mac Macbook Pro, with the error
To test this up the count of files in
filemonitor_test.TestFileMonitorFiles
, to something like5000
and the error will show up in the log when runningmake test-go
.To fix this the proposed quick solution is to on OSX monitor directories instead of files, when a file is added to the watch list compute the directory it is contained in and monitor this directory via FSEvents. This can cause more restarts than before.
fixes #607 #589