test(machine): settlement-watch.test.ts — 5 of 7 fail on a clean dev checkout #125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while running the machine suite for #124; identical on an untouched
devworktree at23bd547, so not introduced by that branch.Failing: "replays a settlement that beat the consumer (the race that lost payments)", "delivers a push that arrives while the consumer is attached", "settles from the poll when no push ever arrives", "polls even when arming the subscription fails", plus one more. All the same shape — the settlement callback spy is never called:
The two that pass are the ones that don't wait on a timer, which points at fake-timer /
awaitordering in the test rather than atsettlement-watch.ts— but this is the cash-out payment path (the race inebb07ce"arm the cash-out settlement watch before the invoice is shown"), so it needs to be established which, not assumed. Last touched inebb07ce. The live path works (sintra's 90 EUR withdraw on 2026-10-10 settled via push), which is consistent with a test-harness problem but is not proof.Note
pnpm testis red ondevuntil this is fixed, which hides new failures.