Skip to content

Testing of multiple heartbeat properties #1158

Open
@saurabhagrawal-86

Description

@saurabhagrawal-86

If my activity stores multiple properties in the heartbeat, how do I test it? In the cadence client, the RecordHeartbeat and GetHeartbeatDetails are variadic functions, i.e. we can record multiple details in the heartbeat. However, the TestActivityEnvironment.SetHeartbeatDetails() accepts only a single argument. Is this intentional? As a workaround, I could model the properties in a "container" struct, but I would like to avoid it if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementup-for-grabsIssues that are good entry points for those new to Cadence that want to contribute

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions