diff options
| author | Shulhan <ms@kilabit.info> | 2022-08-07 23:06:12 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-08-07 23:06:12 +0700 |
| commit | 4e29d6f0435062c0ccb507ff6ca8d1239b5013bc (patch) | |
| tree | d07052a57bcb5c1fdc878b4a7b7c973d75566f8f /watcher_test.go | |
| parent | c32cc2fb5aea85de19ea968366338e09e6fa3c6a (diff) | |
| download | ciigo-4e29d6f0435062c0ccb507ff6ca8d1239b5013bc.tar.xz | |
all: remove delay for testing Watch
The delay sometimes cause the test locked and hung.
Diffstat (limited to 'watcher_test.go')
| -rw-r--r-- | watcher_test.go | 2 |
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 |
