Merge pull request #76189 from soltysh/fix_legacy_podautoscaler

Fix flaky legacy pod autoscaler test
This commit is contained in:
Kubernetes Prow Robot 2019-04-05 14:34:05 -07:00 committed by GitHub
commit deb48e331a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -472,7 +472,11 @@ func (tc *legacyTestCase) runTest(t *testing.T) {
if tc.finished {
return true, &v1.Event{}, nil
}
obj := action.(core.CreateAction).GetObject().(*v1.Event)
create, ok := action.(core.CreateAction)
if !ok {
return false, nil, nil
}
obj := create.GetObject().(*v1.Event)
if tc.verifyEvents {
switch obj.Reason {
case "SuccessfulRescale":