Files
Rod Boev bf35430c3b test(cors): use OS-assigned ports in CORS restriction tests (#3400)
Test-only change: the CORS restriction suite now binds port 0 and reads the
OS-assigned port instead of guessing a fixed random port in 41000-51000, and
only closes the server when it is actually listening.

Author: @rodboev
Refs: #3603 (plan-15 Worker Port & Liveness Authority)
Closes: #3392

Verified on merge of origin/main (6c1ecb54a): bun test tests -> 3716 pass,
28 skip, 2 fail (both pre-existing on main: field-deadline-wire real-network
test and plugin-distribution npm-tarball test that needs a build). tsc
--noEmit clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015w89Sfxy7rZK9xDWixDPv7
2026-09-12 10:00:26 -07:00
..