fixing the leaks in TestStressWatchCancelClose

This commit is contained in:
songlh 2022-01-04 17:57:19 -05:00
parent a45c73d9b1
commit a9652b4b4e

View File

@ -615,7 +615,8 @@ func TestStressWatchCancelClose(t *testing.T) {
s := newWatchableStore(zap.NewExample(), b, &lease.FakeLessor{}, StoreConfig{})
defer func() {
s.store.Close()
b.Close()
s.Close()
os.Remove(tmpPath)
}()