Update fake.go

This commit is contained in:
zhangke 2016-05-17 19:00:34 +08:00
parent 4f62152221
commit 3eb9aff216

View File

@ -179,7 +179,7 @@ func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper {
// ClearActions clears the history of actions called on the fake client
func (c *Fake) ClearActions() {
c.Lock()
c.Unlock()
defer c.Unlock()
c.actions = make([]Action, 0)
}