From 159cd136ff12cf1c269c57e942479b2cf46d1fcc Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 9 Nov 2023 00:15:21 +0700 Subject: all: add method to stop watcher With the latest update on lib/memfs, we can stop the watcher internally. --- watcher_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'watcher_test.go') 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) { -- cgit v1.3