Merge pull request #19031 from mikedanese/fix-flake

fix flake in deployment unit test
This commit is contained in:
Marek Grabowski 2015-12-23 08:38:13 +01:00
commit cf69083697

View File

@ -365,6 +365,7 @@ func newFixture(t *testing.T) *fixture {
func (f *fixture) run(deploymentName string) {
f.client = testclient.NewSimpleFake(f.objects)
c := NewDeploymentController(f.client, controller.NoResyncPeriodFunc)
c.eventRecorder = &record.FakeRecorder{}
c.rcStoreSynced = alwaysReady
c.podStoreSynced = alwaysReady
for _, d := range f.dStore {