add tests for fswatcher package

This commit is contained in:
Dominic Breuker
2018-02-27 09:56:05 +01:00
parent d38cb18712
commit a2dfb51d51
14 changed files with 277 additions and 199 deletions

View File

@@ -74,7 +74,7 @@ func root(cmd *cobra.Command, args []string) {
LogPS: logPS,
LogFS: logFS,
}
iw, err := fswatcher.NewInotifyWatcher()
iw, err := fswatcher.NewFSWatcher()
if err != nil {
logger.Errorf("Can't initialize fswatcher: %v", err)
os.Exit(1)