mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fixing the goroutine in two unit tests
This commit is contained in:
parent
29292aa7bd
commit
246e7eba09
@ -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
|
||||
|
@ -536,7 +536,8 @@ func TestWatchVictims(t *testing.T) {
|
||||
s := newWatchableStore(zap.NewExample(), b, &lease.FakeLessor{}, StoreConfig{})
|
||||
|
||||
defer func() {
|
||||
s.store.Close()
|
||||
s.Close()
|
||||
b.Close()
|
||||
os.Remove(tmpPath)
|
||||
chanBufLen, maxWatchersPerSync = oldChanBufLen, oldMaxWatchersPerSync
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user