We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cdb4c9 + bcfd48c commit deb48e3Copy full SHA for deb48e3
pkg/controller/podautoscaler/legacy_horizontal_test.go
@@ -472,7 +472,11 @@ func (tc *legacyTestCase) runTest(t *testing.T) {
472
if tc.finished {
473
return true, &v1.Event{}, nil
474
}
475
- obj := action.(core.CreateAction).GetObject().(*v1.Event)
+ create, ok := action.(core.CreateAction)
476
+ if !ok {
477
+ return false, nil, nil
478
+ }
479
+ obj := create.GetObject().(*v1.Event)
480
if tc.verifyEvents {
481
switch obj.Reason {
482
case "SuccessfulRescale":
0 commit comments