From 4e29d6f0435062c0ccb507ff6ca8d1239b5013bc Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 7 Aug 2022 23:06:12 +0700 Subject: all: remove delay for testing Watch The delay sometimes cause the test locked and hung. --- watcher_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/watcher_test.go b/watcher_test.go index 6b219d1..89644e5 100644 --- a/watcher_test.go +++ b/watcher_test.go @@ -8,7 +8,6 @@ import ( "os" "path/filepath" "testing" - "time" "github.com/shuLhan/share/lib/test" ) @@ -201,7 +200,6 @@ func waitChanges() (fmarkup *fileMarkup) { ) for { - time.Sleep(5000) fmarkup, ok = testWatcher.changes.Pop().(*fileMarkup) if ok { break -- cgit v1.3