Skip to content

StellarMonitorService, the core confirmation cron job, has no spec #190

Description

@martinzhames

Category: testing

Problem

src/stellar/stellar-monitor.service.ts has no matching .spec.ts anywhere in the repo, despite being the service that scans Stellar Horizon transactions, confirms payments, expires stale payments, and triggers settlement.

Impact

With zero unit tests, the two runtime bugs filed separately (unreachable pollEscrowEvents call, call to nonexistent pollTransferEvents) went completely undetected — this is the single highest-value module in the codebase to leave untested.

Suggested fix

Add src/stellar/stellar-monitor.service.spec.ts covering scanPendingPayments, confirmPayment, and expireOldPayments with mocked Stellar/Soroban dependencies.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions