try some more tsting

This commit is contained in:
Dominic Breuker
2018-02-26 07:41:28 +01:00
parent dd123848f2
commit 6c79b80623
17 changed files with 262 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ import (
"syscall"
"github.com/dominicbreuker/pspy/internal/config"
"github.com/dominicbreuker/pspy/internal/inotify"
"github.com/dominicbreuker/pspy/internal/fswatcher"
"github.com/dominicbreuker/pspy/internal/logging"
"github.com/dominicbreuker/pspy/internal/process"
"github.com/dominicbreuker/pspy/internal/pspy"
@@ -74,9 +74,9 @@ func root(cmd *cobra.Command, args []string) {
LogPS: logPS,
LogFS: logFS,
}
iw, err := inotify.NewInotifyWatcher()
iw, err := fswatcher.NewInotifyWatcher()
if err != nil {
logger.Errorf("Can't initialize inotify: %v", err)
logger.Errorf("Can't initialize fswatcher: %v", err)
os.Exit(1)
}
defer iw.Close()