diff --git a/internal/certmanager/test_files/reactors.go b/internal/certmanager/test_files/reactors.go index 8dcdcfb81e..63aad0a006 100644 --- a/internal/certmanager/test_files/reactors.go +++ b/internal/certmanager/test_files/reactors.go @@ -46,11 +46,7 @@ func ObjectCreatedReactor(t *testing.T, b *Builder, expectedObj runtime.Object) if !ok { return } - obj, ok := createAction.GetObject().(runtime.Object) - if !ok { - t.Errorf("object passed to Create does not implement runtime.Object") - } - + obj := createAction.GetObject() if !reflect.DeepEqual(obj, expectedObj) { t.Errorf("expected %+v to equal %+v", obj, expectedObj) }