fix fake controller source watch behavior

This commit is contained in:
Daniel Smith
2015-04-14 13:26:55 -07:00
parent afd7d77a24
commit 3fdfea3ad8
2 changed files with 49 additions and 0 deletions

View File

@@ -158,6 +158,7 @@ func (f *FakeControllerSource) Watch(resourceVersion string) (watch.Interface, e
if err != nil {
return nil, err
}
rc++ // Don't re-send them a change they already have.
if rc < len(f.changes) {
changes := []watch.Event{}
for _, c := range f.changes[rc:] {