try some more tsting

This commit is contained in:
Dominic Breuker committed 2018-03-12 08:58:01 +01:00
1 parent d1c18d901a
commit 2750defb63
17 files changed
+262 -28

No files matched your search

+3 -3
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()