Skip to content

test(channels): a failed claim answers without the store's text - #2349

Merged
Nash0x7E2 merged 2 commits into
mainfrom
test/claim-failure-answer
Nov 24, 2026
Merged

Nash0x7E2 merged 2 commits into
mainfrom
test/claim-failure-answer

Conversation

@thesyncim

@thesyncim thesyncim commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Test only. AI-3575: keep internal error text from callers #2249 already answers a plain claim failure (HELP or an ordinary message) in channels.Service.Receive with a fixed 500 and logs the store's error. No test reached that branch: the existing ones fail at the line lookup or cover STOP and START.

Tests

  • ChannelsSuite.TestAMessageTheStoreCouldNotClaimIsA500WithoutTheStoresWords: a trigger refuses the line's channel_deliveries insert. A HELP and an ordinary message are each answered 500 with "something went wrong", with no store text in the body and no reply sent, and the store's error is logged under "could not claim a channel delivery".
  • Mutant: answering failure(err.Error()) again makes it fail for both messages (body was store: claim channel message: ERROR: refused by the test).
  • Passes on the merge with current main.

Part of AI-3579

@thesyncim thesyncim added the data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review label Nov 24, 2026
@Nash0x7E2
Nash0x7E2 merged commit 9ecbebb into main Nov 24, 2026
8 of 12 checks passed
@Nash0x7E2
Nash0x7E2 deleted the test/claim-failure-answer branch November 24, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants