commit | 4d1c3be76f6e72a2297022ce15013536ab94cdbc | [log] [tgz] |
---|---|---|
author | Herbie Ong <herbie@google.com> | Fri Mar 15 18:22:36 2019 -0700 |
committer | Herbie Ong <herbie@google.com> | Sat Mar 16 01:54:17 2019 +0000 |
tree | 0f9991974398373bb4ce2c789ce3f0802a650b12 | |
parent | c96a79da290ce9ad465afbdee491de1cca29b60a [diff] [blame] |
encoding/textpb: reduce dependency on proto v1 package Substitute protoV1.Marshal calls to use proto v2. A few tests still need to use v1 due to missing required field checks in v2. Change-Id: I97ee208b81afc85c81142e70c1d7bdc47db76ce4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167774 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
diff --git a/encoding/textpb/decode_test.go b/encoding/textpb/decode_test.go index bbf99bf..3737f91 100644 --- a/encoding/textpb/decode_test.go +++ b/encoding/textpb/decode_test.go
@@ -1327,8 +1327,7 @@ OptString: scalar.String("inception"), }, } - // TODO: Switch to V2 marshal when ready. - b, err := protoV1.Marshal(m) + b, err := proto.Marshal(m) if err != nil { t.Fatalf("error in binary marshaling message for Any.value: %v", err) }