diff --git a/hack/oci-pin/sum.go b/hack/oci-pin/sum.go index 3c052746d4..14f1996440 100644 --- a/hack/oci-pin/sum.go +++ b/hack/oci-pin/sum.go @@ -45,7 +45,7 @@ func runSum(cmd *cobra.Command, _ []string) error { log.Debug(fmt.Sprintf( `Parsed flags: image-repo-tag: %q - oci-path: %q` + oci-path: %q`, flags.imageRepoTag, flags.ociPath)) registry, prefix, name, tag, err := splitRepoTag(flags.imageRepoTag) diff --git a/internal/grpc/grpclog/grpclog_test.go b/internal/grpc/grpclog/grpclog_test.go index 704f1a9237..eb912521fe 100644 --- a/internal/grpc/grpclog/grpclog_test.go +++ b/internal/grpc/grpclog/grpclog_test.go @@ -33,8 +33,8 @@ func TestLogStateChanges(t *testing.T) { }, assert: func(t *testing.T, lg *spyLog, isReadyCallbackCalled bool) { require.Len(t, lg.msgs, 3) - assert.Equal(t, "Connection state started as CONNECTING", lg.msgs[0]) - assert.Equal(t, "Connection state changed to CONNECTING", lg.msgs[1]) + assert.Equal(t, "Connection state started as \"CONNECTING\"", lg.msgs[0]) + assert.Equal(t, "Connection state changed to \"CONNECTING\"", lg.msgs[1]) assert.Equal(t, "Connection ready", lg.msgs[2]) assert.True(t, isReadyCallbackCalled) }, @@ -49,7 +49,7 @@ func TestLogStateChanges(t *testing.T) { }, assert: func(t *testing.T, lg *spyLog, isReadyCallbackCalled bool) { require.Len(t, lg.msgs, 2) - assert.Equal(t, "Connection state started as READY", lg.msgs[0]) + assert.Equal(t, "Connection state started as \"READY\"", lg.msgs[0]) assert.Equal(t, "Connection ready", lg.msgs[1]) assert.True(t, isReadyCallbackCalled) }, @@ -64,8 +64,8 @@ func TestLogStateChanges(t *testing.T) { }, assert: func(t *testing.T, lg *spyLog, isReadyCallbackCalled bool) { require.Len(t, lg.msgs, 2) - assert.Equal(t, "Connection state started as CONNECTING", lg.msgs[0]) - assert.Equal(t, "Connection state ended with CONNECTING", lg.msgs[1]) + assert.Equal(t, "Connection state started as \"CONNECTING\"", lg.msgs[0]) + assert.Equal(t, "Connection state ended with \"CONNECTING\"", lg.msgs[1]) assert.False(t, isReadyCallbackCalled) }, },