Files
OpenShell/crates/openshell-cli
Matthew Grossman 4dd6151578 test(cli): retry forward tests when another process takes the port (#4570)
* test(cli): pick forward test ports below the ephemeral range

The forward tests released an OS-assigned port before the CLI bound it,
so a concurrent test's bind to port 0 could claim it. Pick ports below
the Linux and macOS ephemeral ranges from a random offset instead.

Closes #4569

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* test(cli): retry forward tests when another process takes the port

Replace the fixed port range with a retry. The CLI checks a forward port
before binding it, so a concurrent test can claim it in between; on that
error, pick a new OS-assigned port and run the forward again.

Refs #4569

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
2026-10-14 21:54:49 +00:00
..