diff --git a/pkg/reconciler/taskrun/resources/cloudevent/cloudevent_test.go b/pkg/reconciler/taskrun/resources/cloudevent/cloudevent_test.go index 1498a075cf4..0663bac91dd 100644 --- a/pkg/reconciler/taskrun/resources/cloudevent/cloudevent_test.go +++ b/pkg/reconciler/taskrun/resources/cloudevent/cloudevent_test.go @@ -73,7 +73,7 @@ func TestSendCloudEvent(t *testing.T) { eventSourceURI: defaultEventSourceURI, cloudEventClient: defaultCloudEventClient, wantErr: true, - errRegexp: fmt.Sprintf("%s: unsupported protocol scheme", invalidSinkURI), + errRegexp: fmt.Sprintf("\"?%s\"?: unsupported protocol scheme", invalidSinkURI), }, { desc: "send a cloud event, fail to send", sinkURI: defaultSinkURI,