You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(catalog): hand the pinned transport back the stubbed fetch
#697 moved provider model discovery onto the pinned outbound transport,
which resolves and pins the peer address instead of reading
`globalThis.fetch`. Catalog tests that stub the global therefore escaped
their stub and tried real DNS, failing with
DestinationDnsResolutionError — 25 failures across four files after the
merge.
`providerOutboundGet` already supports a caller-owned executor via
`provider.fetch`; #697 used it in two spots. Extend that to the rest:
a shared `withStubbedProviderFetch` helper attaches an executor that
defers to whatever `globalThis.fetch` is installed at call time, so a
test may still swap its stub after building the config.
This changes test wiring only. Production discovery keeps the pinned
transport with no injected executor, which is the security property
#697 added. The suite also gets faster — codex-catalog.test.ts drops
from ~33s to ~2.5s now that four cases no longer wait on real DNS
timeouts.
0 commit comments