Skip to content

Commit 760467f

Browse files
committed
test(cashu): drop AddCashuEscrow from the InvalidAction gate
TA-1 implements AddCashuEscrow, so dispatch_cashu no longer routes it to InvalidAction — it runs the real lock handler. Remove it from the 'blocks every order-lifecycle action' assertion list.
1 parent 4c0780a commit 760467f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/app.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,10 +1052,11 @@ mod tests {
10521052
}
10531053

10541054
/// Every action that creates, advances, or settles an order — plus the
1055-
/// permanently-blocked buyer-invoice/bond actions and the not-yet-
1056-
/// implemented `AddCashuEscrow` (its CF-5 stub returns `InvalidAction`
1057-
/// too) — must be rejected with `CantDo(InvalidAction)` in Cashu
1058-
/// foundation mode. This is the DoD "no trade can complete yet" gate.
1055+
/// permanently-blocked buyer-invoice/bond actions — must be rejected
1056+
/// with `CantDo(InvalidAction)` in Cashu foundation mode. This is the
1057+
/// DoD "no trade can complete yet" gate. `AddCashuEscrow` is excluded:
1058+
/// Track A (TA-1) implements it, so it no longer routes to
1059+
/// `InvalidAction` — it runs the real lock handler.
10591060
#[tokio::test]
10601061
async fn blocks_every_order_lifecycle_action_with_invalid_action() {
10611062
let _ =
@@ -1075,7 +1076,6 @@ mod tests {
10751076
Action::Cancel,
10761077
Action::Dispute,
10771078
Action::RateUser,
1078-
Action::AddCashuEscrow,
10791079
Action::AdminCancel,
10801080
Action::AdminSettle,
10811081
Action::AddBondInvoice,

0 commit comments

Comments
 (0)