mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
test(core): Stabilize transport timeout test (#41150)
This commit is contained in:
parent
40094e363b
commit
5d79c16f51
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user