Remove panic handling from federated test helper
This commit is contained in:
		@@ -169,12 +169,6 @@ func RegisterFakeCopyOnUpdate(resource string, client *core.Fake, watcher *Watch
 | 
				
			|||||||
		obj := updateAction.GetObject()
 | 
							obj := updateAction.GetObject()
 | 
				
			||||||
		go func() {
 | 
							go func() {
 | 
				
			||||||
			glog.V(4).Infof("Object updated. Writing to channel: %v", obj)
 | 
								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)
 | 
								watcher.Modify(obj)
 | 
				
			||||||
			objChan <- obj
 | 
								objChan <- obj
 | 
				
			||||||
		}()
 | 
							}()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user