Merge pull request #94739 from knight42/fix/TestExpectationsOnRecreate

test: ensure WaitForCacheSync is called after starting sharedInformerFacotry
This commit is contained in:
Kubernetes Prow Robot
2020-09-15 11:18:07 -07:00
committed by GitHub
5 changed files with 12 additions and 14 deletions

View File

@@ -428,6 +428,7 @@ func TestDeploymentController_cleanupDeployment(t *testing.T) {
stopCh := make(chan struct{})
defer close(stopCh)
informers.Start(stopCh)
informers.WaitForCacheSync(stopCh)
t.Logf(" &test.revisionHistoryLimit: %d", test.revisionHistoryLimit)
d := newDeployment("foo", 1, &test.revisionHistoryLimit, nil, nil, map[string]string{"foo": "bar"})