mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fixing the leaks in TestStressWatchCancelClose
This commit is contained in:
parent
a45c73d9b1
commit
a9652b4b4e
@ -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)
|
||||
}()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user