Skip to content

Commit

Permalink
close the watcher at the end of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
luyuhuang committed Apr 13, 2021
1 parent 3ae76a8 commit fa084b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fa084b1

Please sign in to comment.