Skip to content

Commit

Permalink
proto: fix compilation failure in tests
Browse files Browse the repository at this point in the history
Change-Id: I61a84dffcf4ccc9f81dc8b9f932c315713e81142
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/418674
Reviewed-by: Lasse Folger <lassefolger@google.com>
  • Loading branch information
neild authored and lfolger committed Jul 21, 2022
1 parent fc44d00 commit 5f429f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proto/equal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,11 +632,11 @@ func makeNested(depth int) *testpb.TestAllTypes {
if depth <= 0 {
return nil
}
return testpb.TestAllTypes_builder{
OptionalNestedMessage: testpb.TestAllTypes_NestedMessage_builder{
return &testpb.TestAllTypes{
OptionalNestedMessage: &testpb.TestAllTypes_NestedMessage{
Corecursive: makeNested(depth - 1),
}.Build(),
}.Build()
},
}
}

func BenchmarkEqualWithDeeplyNestedEqual(b *testing.B) {
Expand Down

0 comments on commit 5f429f7

Please sign in to comment.