Scrub pod closes watch channel

This commit is contained in:
markturansky
2015-06-09 15:06:20 -04:00
parent c5553af281
commit 4210a5dfd8
2 changed files with 11 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ func (c *mockScrubberClient) DeletePod(name, namespace string) error {
return nil
}
func (c *mockScrubberClient) WatchPod(name, namespace, resourceVersion string) func() *api.Pod {
func (c *mockScrubberClient) WatchPod(name, namespace, resourceVersion string, stopChannel chan struct{}) func() *api.Pod {
return func() *api.Pod {
return c.pod
}