@@ -1077,49 +1077,6 @@ describe("iMessage approval reactions", () => {
10771077 ) . resolves . toBeNull ( ) ;
10781078 } ) ;
10791079
1080- it ( "propagates transient Gateway errors for durable ingress retry" , async ( ) => {
1081- registerIMessageApprovalReactionTarget ( {
1082- accountId : "default" ,
1083- conversation : { handle : "+15551230000" } ,
1084- messageId : "pending-approval" ,
1085- approvalId : "exec-pending" ,
1086- allowedDecisions : [ "allow-once" , "deny" ] ,
1087- } ) ;
1088- const gatewayError = new Error ( "Gateway 503 Service Unavailable" ) ;
1089- resolverMocks . resolveApprovalOverGateway . mockRejectedValueOnce ( gatewayError ) ;
1090- resolverMocks . isApprovalNotFoundError . mockReturnValue ( false ) ;
1091-
1092- // Transient errors must throw so the durable ingress drain releases the
1093- // claim and replays the reaction; committing or dropping it here would
1094- // lose the operator's click.
1095- await expect (
1096- maybeResolveIMessageApprovalReaction ( {
1097- cfg : {
1098- channels : { imessage : { allowFrom : [ "+15551230000" ] } } ,
1099- } ,
1100- accountId : "default" ,
1101- message : buildTapbackReactionPayload ( {
1102- sender : "+15551230000" ,
1103- reaction_emoji : "👍" ,
1104- reacted_to_guid : "pending-approval" ,
1105- } ) ,
1106- bodyText : "" ,
1107- } ) ,
1108- ) . rejects . toBe ( gatewayError ) ;
1109- expect ( resolverMocks . resolveApprovalOverGateway ) . toHaveBeenCalledWith (
1110- expect . objectContaining ( { approvalId : "exec-pending" } ) ,
1111- ) ;
1112- // The binding should NOT be cleared yet (not-found is the terminal case).
1113- await expect (
1114- resolveIMessageApprovalReactionTargetWithPersistence ( {
1115- accountId : "default" ,
1116- conversation : { handle : "+15551230000" } ,
1117- messageId : "pending-approval" ,
1118- reactionKey : "👍" ,
1119- } ) ,
1120- ) . resolves . toBeTruthy ( ) ;
1121- } ) ;
1122-
11231080 it ( "clears a losing surface and reports the canonical first-answer outcome" , async ( ) => {
11241081 registerIMessageApprovalReactionTarget ( {
11251082 accountId : "default" ,
0 commit comments