Skip to content

Commit fa084b1

Browse files
committed
close the watcher at the end of the test
1 parent 3ae76a8 commit fa084b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/rules_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ func TestRulesFile(t *testing.T) {
262262
t.Fatalf("%q rule got %d, want %d", c.addr, r, c.rule)
263263
}
264264
}
265+
266+
rule.watcher.Close()
265267
}
266268

267269
func TestRulesFileIllegal(t *testing.T) {

0 commit comments

Comments
 (0)