docs(changelog): note DAP unix socket connect hang fix

This commit is contained in:
roboomp
2026-07-23 19:54:19 +00:00
parent 3b194a3e37
commit 33ecf0b3ae
2 changed files with 5 additions and 1 deletions
@@ -493,7 +493,10 @@ describe("connectSocket unix transport", () => {
// yields ECONNREFUSED/ENOENT from Bun.connect. Before the fix the error
// handler only errored the stream and the returned promise never settled,
// so `await connectSocket(...)` hung the launch forever.
const deadSocket = path.join(os.tmpdir(), `omp-dap-dead-${Date.now()}-${Math.random().toString(36).slice(2)}.sock`);
const deadSocket = path.join(
os.tmpdir(),
`omp-dap-dead-${Date.now()}-${Math.random().toString(36).slice(2)}.sock`,
);
const start = Date.now();
await expect(connectSocket({ unix: deadSocket }, 5_000)).rejects.toThrow();
// Must settle on the connect error, not linger until the timeout bound.