flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Testing] Unskip the happy-path chain-read tests in soroban.service.test.ts

Open blurbeast opened this issue 2 weeks ago • 4 comments

Overview & Background

Three success-path tests are skipped in backend/tests/soroban.service.test.ts: it.skip('verifies mock server is called') (line 338), it.skip('decodes getStreamFromChain response') (line 349), and it.skip('decodes getClaimableFromChain response') (line 393). The only chain-read tests that actually run are the failure paths ("returns null when ... decoding fails"). As committed, the suite only proves the code returns null on garbage input — a regression that breaks the happy-path XDR decoder entirely would pass CI green.


Technical Specification & Architecture

  1. Fix whatever forced the skips (mock shape of simulateTransaction/assembleTransaction) and re-enable the three tests.
  2. Or rewrite them against the current mock harness.
  3. Assert real decode outputs (stream fields, claimable amounts), not just non-null.

Target Files

  • backend/tests/soroban.service.test.ts

Acceptance Criteria

  • [ ] All three happy-path tests run and pass in CI.
  • [ ] Decoder outputs are asserted against known fixtures.
  • [ ] No it.skip remains in the chain-read suite.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@chukwujoshua242-prog has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

hello maintainer, i will love to work on this issue, kindly assign it to me

ℹ️ Repo Maintainers: To accept this application, review their application or assign @chukwujoshua242-prog to this issue.

chukwujoshua242-prog avatar Nov 21 '26 01:11 chukwujoshua242-prog

@ademola-star has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

i can drive

ℹ️ Repo Maintainers: To accept this application, review their application or assign @ademola-star to this issue.

ademola-star avatar Nov 21 '26 07:11 ademola-star

Congratulations, @ademola-star! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @ademola-star: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 21 '26 07:11 drips-wave[bot]

This issue has been completed by @ademola-star as part of the Stellar Wave Program's 11th Wave 🥳

😎 @ademola-star: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 24 '26 17:11 drips-wave[bot]