Fix a missing lock in the fake etcd client.
This commit is contained in:
parent
69ca97a41c
commit
cf4fd8753f
@ -239,6 +239,8 @@ func (f *FakeEtcdClient) Delete(key string, recursive bool) (*etcd.Response, err
|
||||
return nil, f.Err
|
||||
}
|
||||
|
||||
f.Mutex.Lock()
|
||||
defer f.Mutex.Unlock()
|
||||
f.Data[key] = EtcdResponseWithError{
|
||||
R: &etcd.Response{
|
||||
Node: nil,
|
||||
|
Loading…
Reference in New Issue
Block a user