openship icon indicating copy to clipboard operation
openship copied to clipboard

test: make TCP timeout test deterministic

Open luojiyin1987 opened this issue 4 months ago • 0 comments

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.ts
  • bun run --cwd packages/adapters lint

Fixes #40

luojiyin1987 avatar Jul 20 '26 07:07 luojiyin1987