aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-07 23:06:12 +0700
committerShulhan <ms@kilabit.info>2022-08-07 23:06:12 +0700
commit4e29d6f0435062c0ccb507ff6ca8d1239b5013bc (patch)
treed07052a57bcb5c1fdc878b4a7b7c973d75566f8f
parentc32cc2fb5aea85de19ea968366338e09e6fa3c6a (diff)
downloadciigo-4e29d6f0435062c0ccb507ff6ca8d1239b5013bc.tar.xz
all: remove delay for testing Watch
The delay sometimes cause the test locked and hung.
-rw-r--r--watcher_test.go2
1 files changed, 0 insertions, 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