Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test(events): pin the 10 s publisher socket deadline
Yudhi Armyndharis6e75410bd22f
diff --git a/src/modules/events/redis-io.adapter.spec.ts b/src/modules/events/redis-io.adapter.spec.tsindex f8ca1ebca..fca04d1da 100644--- a/src/modules/events/redis-io.adapter.spec.ts+++ b/src/modules/events/redis-io.adapter.spec.ts@@ -215,6 +215,9 @@ describe('RedisIoAdapter', () => {expect(Number.isFinite(WS_REDIS_COMMAND_TIMEOUT_MS)).toBe(true);expect(Number.isFinite(WS_REDIS_SOCKET_TIMEOUT_MS)).toBe(true);expect(WS_REDIS_SOCKET_TIMEOUT_MS).toBeGreaterThanOrEqual(WS_REDIS_COMMAND_TIMEOUT_MS);+ // The figure docs/13 and the adapter comment quote ("a pause under 10 s is delivered late", "at most 10 s of+ // events"): the other tests derive their waits from the constant and would follow it to any value.+ expect(WS_REDIS_SOCKET_TIMEOUT_MS).toBe(10_000);for (const option of ['commandTimeout','socketTimeout',