Skip to content

Commit 5f429f7

Browse files
neildlfolger
authored andcommitted
proto: fix compilation failure in tests
Change-Id: I61a84dffcf4ccc9f81dc8b9f932c315713e81142 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/418674 Reviewed-by: Lasse Folger <[email protected]>
1 parent fc44d00 commit 5f429f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proto/equal_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,11 +632,11 @@ func makeNested(depth int) *testpb.TestAllTypes {
632632
if depth <= 0 {
633633
return nil
634634
}
635-
return testpb.TestAllTypes_builder{
636-
OptionalNestedMessage: testpb.TestAllTypes_NestedMessage_builder{
635+
return &testpb.TestAllTypes{
636+
OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{
637637
Corecursive: makeNested(depth - 1),
638-
}.Build(),
639-
}.Build()
638+
},
639+
}
640640
}
641641

642642
func BenchmarkEqualWithDeeplyNestedEqual(b *testing.B) {

0 commit comments

Comments
 (0)