Skip to content

Commit

Permalink
encoding/proto: make sure proto imports are renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Jan 23, 2024
1 parent 52e2363 commit 0481078
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions encoding/proto/proto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (

"google.golang.org/grpc/encoding"
"google.golang.org/grpc/internal/grpctest"
"google.golang.org/grpc/test/codec_perf"
pb "google.golang.org/grpc/test/codec_perf"
)

func marshalAndUnmarshal(t *testing.T, codec encoding.Codec, expectedBody []byte) {
p := &codec_perf.Buffer{}
p := &pb.Buffer{}
p.Body = expectedBody

marshalledBytes, err := codec.Marshal(p)
Expand Down Expand Up @@ -99,8 +99,8 @@ func (s) TestStaggeredMarshalAndUnmarshalUsingSamePool(t *testing.T) {
expectedBody1 := []byte{1, 2, 3}
expectedBody2 := []byte{4, 5, 6}

proto1 := codec_perf.Buffer{Body: expectedBody1}
proto2 := codec_perf.Buffer{Body: expectedBody2}
proto1 := pb.Buffer{Body: expectedBody1}
proto2 := pb.Buffer{Body: expectedBody2}

var m1, m2 []byte
var err error
Expand Down

0 comments on commit 0481078

Please sign in to comment.