Skip to content

Add Test: poll_contract fires AnyTransaction rule for every transaction on the page #121

@habiba-d-coder

Description

@habiba-d-coder

Priority: High
Crate: txwatch-poller
Labels: testing

Description:
There is no test verifying that when a Horizon page contains multiple transactions, the AnyTransaction rule fires for each one and the webhook is called once per transaction.

Tasks:

  • Mount a mock Horizon server returning a page with 3 transactions
  • Configure AnyTransaction rule
  • Assert the webhook mock receives exactly 3 POST requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions