diff --git a/pkg/reconciler/taskrun/resources/taskref_test.go b/pkg/reconciler/taskrun/resources/taskref_test.go index 62eba5f2653..27379a2f94b 100644 --- a/pkg/reconciler/taskrun/resources/taskref_test.go +++ b/pkg/reconciler/taskrun/resources/taskref_test.go @@ -228,6 +228,12 @@ func TestLocalTaskRef(t *testing.T) { &v1beta1.ClusterTask{ ObjectMeta: metav1.ObjectMeta{ Name: "cluster-task", + Annotations: map[string]string{ + "foo": "bar", + }, + Labels: map[string]string{ + "foo": "bar", + }, }, }, &v1beta1.ClusterTask{ @@ -247,6 +253,12 @@ func TestLocalTaskRef(t *testing.T) { }, ObjectMeta: metav1.ObjectMeta{ Name: "cluster-task", + Annotations: map[string]string{ + "foo": "bar", + }, + Labels: map[string]string{ + "foo": "bar", + }, }, }, wantErr: nil,