fix flake in deployment unit test
This commit is contained in:
@@ -365,6 +365,7 @@ func newFixture(t *testing.T) *fixture {
|
|||||||
func (f *fixture) run(deploymentName string) {
|
func (f *fixture) run(deploymentName string) {
|
||||||
f.client = testclient.NewSimpleFake(f.objects)
|
f.client = testclient.NewSimpleFake(f.objects)
|
||||||
c := NewDeploymentController(f.client, controller.NoResyncPeriodFunc)
|
c := NewDeploymentController(f.client, controller.NoResyncPeriodFunc)
|
||||||
|
c.eventRecorder = &record.FakeRecorder{}
|
||||||
c.rcStoreSynced = alwaysReady
|
c.rcStoreSynced = alwaysReady
|
||||||
c.podStoreSynced = alwaysReady
|
c.podStoreSynced = alwaysReady
|
||||||
for _, d := range f.dStore {
|
for _, d := range f.dStore {
|
||||||
|
Reference in New Issue
Block a user