We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58717f5 commit 5db576aCopy full SHA for 5db576a
test/protobuf/message_merge_test.exs
@@ -49,7 +49,10 @@ defmodule Protobuf.MessageMergeTest do
49
test "oneof fields with the same tag are merged"
50
51
test "the latest oneof field takes precedence if the two have different tags" do
52
- msg1 = %TestAllTypesProto3{oneof_field: {:oneof_nested_message, %TestAllTypesProto3{}}}
+ msg1 = %TestAllTypesProto3{
53
+ oneof_field: {:oneof_nested_message, %TestAllTypesProto3.NestedMessage{}}
54
+ }
55
+
56
msg2 = %TestAllTypesProto3{oneof_field: {:oneof_string, "foo"}}
57
58
decoded = concat_and_decode([msg1, msg2])
0 commit comments