Skip to content

Commit

Permalink
Add test for Close() in fswatcher
Browse files Browse the repository at this point in the history
Signed-off-by: haanhvu <haanh6594@gmail.com>
  • Loading branch information
haanhvu committed Feb 12, 2023
1 parent 24c5977 commit 31577cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/fswatcher/fs_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func TestFsWatcher(t *testing.T) {
err = w.Add("../../cmd/query/app/fixture/ui-config.json")
assert.NoError(t, err)

err = w.Close()
assert.NoError(t, err)

events := w.Events()
assert.NotZero(t, events)

Expand Down

0 comments on commit 31577cd

Please sign in to comment.