Skip to content

EndEvent writer test should cover actual empty ReturnValue #445

@hjotha

Description

@hjotha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions