From fa084b167d52d9c33f1b74909de7807e3a6a88aa Mon Sep 17 00:00:00 2001 From: luyuhuang Date: Tue, 13 Apr 2021 22:43:08 +0800 Subject: [PATCH] close the watcher at the end of the test --- client/rules_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/rules_test.go b/client/rules_test.go index c1f513b..e1ba582 100644 --- a/client/rules_test.go +++ b/client/rules_test.go @@ -262,6 +262,8 @@ func TestRulesFile(t *testing.T) { t.Fatalf("%q rule got %d, want %d", c.addr, r, c.rule) } } + + rule.watcher.Close() } func TestRulesFileIllegal(t *testing.T) {