Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(webhook): pin that a shutdown-refused delivery keeps its outbox row
Yudhi Armyndharisfd2948227333
diff --git a/src/modules/webhook/webhook-delivery.service.spec.ts b/src/modules/webhook/webhook-delivery.service.spec.tsindex bca63d690..651e70c32 100644--- a/src/modules/webhook/webhook-delivery.service.spec.ts+++ b/src/modules/webhook/webhook-delivery.service.spec.ts@@ -1114,7 +1114,7 @@ describe('WebhookDeliveryService', () => {await dispatchP;expect(destroyed).toBe(true);// The refused delivery keeps its pending outbox row, so the next start's sweep replays it.- expect(outboxService.close).not.toHaveBeenCalledWith('wh-b', expect.anything(), 'failed');+ expect(outboxService.close).not.toHaveBeenCalledWith('wh-b', expect.anything(), expect.anything());});it('queued mode: parked enqueues drain to the queue on shutdown instead of dead-lettering', async () => {