Skip to content

Temporal testing fails for :terminate_if_running reuse policy #306

Open
@iegomez

Description

@iegomez

When enabling testing, the gem runs this check on workflows:

w_id == workflow_id && disallowed_statuses.include?(execution.status)

The problem is that disallowed_statuses (at

def disallowed_statuses_for(reuse_policy)
) doesn't consider the valid terminate_if_running reuse policy, thus crashing at disallowed_statuses.include?(execution.status) due to it returning nil.

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