fixing the leaks in TestStressWatchCancelClose
@@ -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)
}()
