diff --git a/federation/pkg/federation-controller/util/test/test_helper.go b/federation/pkg/federation-controller/util/test/test_helper.go index 4450c8e337b..bb0303d68ba 100644 --- a/federation/pkg/federation-controller/util/test/test_helper.go +++ b/federation/pkg/federation-controller/util/test/test_helper.go @@ -159,12 +159,6 @@ func RegisterFakeCopyOnUpdate(resource string, client *core.Fake, watcher *Watch obj := updateAction.GetObject() go func() { glog.V(4).Infof("Object updated. Writing to channel: %v", obj) - defer func() { - // Sometimes the channel is already closed. - if panicVal := recover(); panicVal != nil { - glog.Errorf("Recovering from panic: %v", panicVal) - } - }() watcher.Modify(obj) objChan <- obj }()