Skip to content

Commit 5db576a

Browse files
committed
Fix test using wrong type for inner struct
1 parent 58717f5 commit 5db576a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/protobuf/message_merge_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ defmodule Protobuf.MessageMergeTest do
4949
test "oneof fields with the same tag are merged"
5050

5151
test "the latest oneof field takes precedence if the two have different tags" do
52-
msg1 = %TestAllTypesProto3{oneof_field: {:oneof_nested_message, %TestAllTypesProto3{}}}
52+
msg1 = %TestAllTypesProto3{
53+
oneof_field: {:oneof_nested_message, %TestAllTypesProto3.NestedMessage{}}
54+
}
55+
5356
msg2 = %TestAllTypesProto3{oneof_field: {:oneof_string, "foo"}}
5457

5558
decoded = concat_and_decode([msg1, msg2])

0 commit comments

Comments
 (0)