diff --git a/common/buf/buffer_test.go b/common/buf/buffer_test.go index 3e949f792..802dbd24c 100644 --- a/common/buf/buffer_test.go +++ b/common/buf/buffer_test.go @@ -16,7 +16,7 @@ func TestBufferClear(t *testing.T) { payload := "Bytes" buffer.Write([]byte(payload)) - if diff := cmp.Diff(buffer.Bytes(), payload); diff != "" { + if diff := cmp.Diff(buffer.Bytes(), []byte(payload)); diff != "" { t.Error(diff) }