Skip to content

Add Test: oracle submit_result emits correct event data for all result types #290

@yahia008

Description

@yahia008

Priority: Medium
Estimated Time: 30 minutes

Description:
test_submit_result_emits_event in the oracle tests verifies the event is emitted but only checks Player1Wins. No test covers Player2Wins or Draw result events.

Tasks:

  • Add test for MatchResult::Player2Wins event emission
  • Add test for MatchResult::Draw event emission
  • Assert match_id and result in event data are correct for each case

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