aboutsummaryrefslogtreecommitdiff
path: root/watcher_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-09 00:15:21 +0700
committerShulhan <ms@kilabit.info>2023-11-09 20:26:43 +0700
commit159cd136ff12cf1c269c57e942479b2cf46d1fcc (patch)
tree305b5044cbc8463341acb2c650ce6f366b3d5c4f /watcher_test.go
parentda3f7b22ecb75681814f22b708e05a5becb699f1 (diff)
downloadciigo-159cd136ff12cf1c269c57e942479b2cf46d1fcc.tar.xz
all: add method to stop watcher
With the latest update on lib/memfs, we can stop the watcher internally.
Diffstat (limited to 'watcher_test.go')
-rw-r--r--watcher_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/watcher_test.go b/watcher_test.go
index 331e2c5..6136afc 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -90,6 +90,8 @@ func TestWatcher(t *testing.T) {
t.Run(`testMarkdownDelete`, func(tt *testing.T) {
testMarkdownDelete(tt, testWatcher, pathFileMarkup)
})
+
+ testWatcher.stop()
}
func testAdocCreate(t *testing.T, testWatcher *watcher, tdata *test.Data, pathFile string) {