diff --git a/pkg/registry/registrytest/service.go b/pkg/registry/registrytest/service.go index b06d1e76ef9..89ca649122b 100644 --- a/pkg/registry/registrytest/service.go +++ b/pkg/registry/registrytest/service.go @@ -121,7 +121,7 @@ func (r *ServiceRegistry) WatchServices(ctx api.Context, options *api.ListOption func (r *ServiceRegistry) ExportService(ctx api.Context, name string, options unversioned.ExportOptions) (*api.Service, error) { r.mu.Lock() - defer r.mu.Lock() + defer r.mu.Unlock() return r.Service, r.Err }