From 5d79c16f51e28c8dce6a45717f5de189c8a9d4ff Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Thu, 15 Oct 2026 07:03:20 +0000 Subject: [PATCH] test(core): Stabilize transport timeout test (#41150) --- .../src/http/__tests__/transport-timeouts.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/@n8n/backend-network/src/http/__tests__/transport-timeouts.test.ts b/packages/@n8n/backend-network/src/http/__tests__/transport-timeouts.test.ts index 9d35692c1ea..f8bbc69bf98 100644 --- a/packages/@n8n/backend-network/src/http/__tests__/transport-timeouts.test.ts +++ b/packages/@n8n/backend-network/src/http/__tests__/transport-timeouts.test.ts @@ -6,7 +6,8 @@ import { buildDispatcher, createDispatcherTransport } from '../undici/transport' // response well past a tight `headersTimeout`: with the knob applied the request // aborts, and with undici's default (5 min) the same slow response succeeds. -const RESPONSE_DELAY_MS = 1000; +// Undici's coarse timer can add nearly one second to short timeouts. +const RESPONSE_DELAY_MS = 2000; const TIGHT_TIMEOUT_MS = 50; describe('transport timeouts', () => {