test(core): Stabilize transport timeout test (#41150)

This commit is contained in:
Charlie Kolb 2026-10-15 07:03:20 +00:00 committed by GitHub
parent 40094e363b
commit 5d79c16f51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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', () => {