Unverified Commit deb48e33 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #76189 from soltysh/fix_legacy_podautoscaler

Fix flaky legacy pod autoscaler test
parents 1cdb4c96 bcfd48c2
...@@ -472,7 +472,11 @@ func (tc *legacyTestCase) runTest(t *testing.T) { ...@@ -472,7 +472,11 @@ func (tc *legacyTestCase) runTest(t *testing.T) {
if tc.finished { if tc.finished {
return true, &v1.Event{}, nil 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 { if tc.verifyEvents {
switch obj.Reason { switch obj.Reason {
case "SuccessfulRescale": case "SuccessfulRescale":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment