Skip to content

Add Test: cancel_match on Completed match returns InvalidState #295

@yahia008

Description

@yahia008

Priority: Medium
Estimated Time: 15 minutes

Description:
No test explicitly verifies that cancel_match returns Error::InvalidState when called on a Completed match. The guard exists in code but is untested for this specific state.

Tasks:

  • Create match, both players deposit, call submit_result to complete it
  • Call try_cancel_match on the completed match
  • Assert Err(Ok(Error::InvalidState))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programtestingTest coverage issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions