mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #13549 from songlh-psu/main
fixing the goroutine leaks in TestHashKVWhenCompacting
This commit is contained in:
commit
68fa5dcf99
@ -536,6 +536,8 @@ type hashKVResult struct {
|
||||
func TestHashKVWhenCompacting(t *testing.T) {
|
||||
b, tmpPath := betesting.NewDefaultTmpBackend(t)
|
||||
s := NewStore(zap.NewExample(), b, &lease.FakeLessor{}, StoreConfig{})
|
||||
defer s.Close()
|
||||
defer b.Close()
|
||||
defer os.Remove(tmpPath)
|
||||
|
||||
rev := 10000
|
||||
|
@ -616,7 +616,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