Merge pull request #32282 from mwielgus/register-on-fake-fix

Automatic merge from submit-queue

Remove panic handling from federated test helper

This was added by accident when helping @quinton-hoole with https://github.com/kubernetes/kubernetes/pull/31600.
pull/6/head
Kubernetes Submit Queue 2016-09-08 06:59:48 -07:00 committed by GitHub
commit b616349efc
1 changed files with 0 additions and 6 deletions

View File

@ -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
}()