aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-10-08 23:34:30 +0700
committerShulhan <ms@kilabit.info>2021-10-08 23:44:26 +0700
commitf4dba0f8bbdee869e64f1ff33b56329080f3a20d (patch)
tree2b56a2650f7669238bf9fbd63423fac7c7249f90 /watcher_test.go
parentcd7bd3f1999a6c1f2efa8cb94ac5d351f59ba8a5 (diff)
downloadciigo-f4dba0f8bbdee869e64f1ff33b56329080f3a20d.tar.xz
all: update share module to latest version
This update affect the Watcher due to changes on FileState.
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/watcher_test.go b/watcher_test.go
index 2d6df9f..3bc7c31 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -23,7 +23,12 @@ var (
func TestWatcher(t *testing.T) {
testDir := "testdata/watcher"
- err := os.MkdirAll(testDir, 0700)
+ err := os.RemoveAll(testDir)
+ if err != nil {
+ t.Logf(err.Error())
+ }
+
+ err = os.MkdirAll(testDir, 0700)
if err != nil {
t.Fatal(err)
}