openship
openship copied to clipboard
test: make TCP timeout test deterministic
Summary
Replace the external TCP connection with a simulated timeout. The test no longer depends on network routing.
Root cause
192.0.2.1:22 can be reachable on private networks.
The test expected a timeout and failed when the connection succeeded.
Validation
bun run --cwd packages/adapters test -- src/system/reachability.test.tsbun run --cwd packages/adapters lint
Fixes #40