Symptom
The regression test named TestSerializeEndEvent_EmptyReturnValueHasNoTrailingLineBreak used ReturnValue: "empty".
That covers a non-empty expression, not the actual empty-string ReturnValue used for void EndEvents.
Expected behavior
The test should use ReturnValue: "" and assert that serialized BSON keeps the ReturnValue field as an empty string, without adding a synthetic trailing newline.
Validation
The change is test-only and should pass the existing sdk/mpr EndEvent tests and the normal Go test suite.
Symptom
The regression test named
TestSerializeEndEvent_EmptyReturnValueHasNoTrailingLineBreakusedReturnValue: "empty".That covers a non-empty expression, not the actual empty-string
ReturnValueused for void EndEvents.Expected behavior
The test should use
ReturnValue: ""and assert that serialized BSON keeps theReturnValuefield as an empty string, without adding a synthetic trailing newline.Validation
The change is test-only and should pass the existing sdk/mpr EndEvent tests and the normal Go test suite.