Fix comments; switch to watching nodes

This commit is contained in:
Daniel Smith
2015-04-10 17:05:07 -07:00
parent 66d55e0959
commit dd26cdf0f7
3 changed files with 8 additions and 11 deletions

View File

@@ -302,8 +302,9 @@ func TestUpdate(t *testing.T) {
var testDoneWG sync.WaitGroup
// Make a controller that immediately deletes anything added to it, and
// logs anything deleted.
// Make a controller that deletes things once it observes an update.
// It calls Done() on the wait group on deletions so we can tell when
// everything we've added has been deleted.
_, controller := framework.NewInformer(
source,
&api.Pod{},