From 623ed2cff82e647a955b57fc2a4c75429079b8d0 Mon Sep 17 00:00:00 2001 From: Dave Protasowski Date: Thu, 14 Feb 2019 10:44:24 -0500 Subject: [PATCH] remove Generational duck type check --- pkg/apis/eventing/v1alpha1/implements_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/apis/eventing/v1alpha1/implements_test.go b/pkg/apis/eventing/v1alpha1/implements_test.go index 84768e12091..3b6ad05890c 100644 --- a/pkg/apis/eventing/v1alpha1/implements_test.go +++ b/pkg/apis/eventing/v1alpha1/implements_test.go @@ -21,21 +21,18 @@ import ( ) func TestTypesImplements(t *testing.T) { - var emptyGen duckv1alpha1.Generation testCases := []struct { instance interface{} iface duck.Implementable }{ // Channel {instance: &Channel{}, iface: &duckv1alpha1.Conditions{}}, - {instance: &Channel{}, iface: &emptyGen}, {instance: &Channel{}, iface: &eventingduck.Subscribable{}}, {instance: &Channel{}, iface: &duckv1alpha1.Addressable{}}, // ClusterChannelProvisioner {instance: &ClusterChannelProvisioner{}, iface: &duckv1alpha1.Conditions{}}, // Subscription {instance: &Subscription{}, iface: &duckv1alpha1.Conditions{}}, - {instance: &Subscription{}, iface: &emptyGen}, } for _, tc := range testCases { if err := duck.VerifyType(tc.instance, tc.iface); err != nil {