Skip to content

[Test] keeper-tx.ts has no test file #657

Description

@collinsezedike

Description

There is no keeper-tx.test.ts anywhere in packages/stellar-sdk-helpers, even though keeper-tx.ts exports several pure, easily-testable classification functions: isDefinitiveOnChainFailure (lines 71-73), isTransientKeeperError (lines 95-107, including the status-code regex at line 89), isStaleAdapterError (lines 152-154), and expectString (lines 115-126).

Acceptance Criteria

  • New keeper-tx.test.ts covers isTransientKeeperError: returns true for a SubmissionInFlightError and for messages matching 429/503/"rate limit", false for a SubmissionFailedError.
  • Covers expectString: throws for a non-string value (e.g. null or a number), returns the value unchanged for a string.
  • pnpm test (stellar-sdk-helpers package) passes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programchoreBuild, CI, dependency updates, or repository maintenancesdkInvolves Blend or DeFindex SDK helpers in packages/stellar-sdk-helperstestingAdds or improves test coverage (unit, integration, or e2e)trivialSelf-contained task, completable in < 2 hours with no deep protocol knowledge required

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions