diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-28 20:32:57 +0530 |
|---|---|---|
| committer | Aman Kumar <145339995+amankumarsingh77@users.noreply.github.com> | 2026-08-02 19:12:46 +0530 |
| commit | 34e5cfdcbe29bbb5f2f46ba54eb67903abd9274d (patch) | |
| tree | f7b421652a7664d97362a308f4a1288cce2ef5b0 /test/manual/socket-guard-test.ts | |
| parent | 91a2fdeff796bae8e87d9146e2d540550f54dd74 (diff) | |
refactor(test): strip comment noise
Removes suite banners, section dividers, and test-id markers that restate
the test names. Keeps one-line notes for the deleted-binary fixture order,
the never-arriving event consumer, the absent-vs-undefined key distinction,
the unexpected-method-echo rationale, and the real-browser teardown and
Local State flush quirks.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test/manual/socket-guard-test.ts')
| -rw-r--r-- | test/manual/socket-guard-test.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/manual/socket-guard-test.ts b/test/manual/socket-guard-test.ts index ab519f9..1b6c4d7 100644 --- a/test/manual/socket-guard-test.ts +++ b/test/manual/socket-guard-test.ts @@ -1,6 +1,3 @@ -/** - * Test: socket guard produces clear error when daemon not running. - */ import { access } from "node:fs/promises"; import { setTimeout as sleep } from "node:timers/promises"; @@ -12,7 +9,6 @@ import { DAEMON_SOCKET_PATH } from "../../src/daemon/protocol"; async function main() { const sock = DAEMON_SOCKET_PATH; - // Simulate no daemon try { await access(sock); console.log("FAIL: Socket exists unexpectedly"); @@ -22,13 +18,11 @@ async function main() { console.log(' "Browser harness not initialized. Run /browser-setup first"'); } - // Start daemon const daemonEntry = join(dirname(fileURLToPath(import.meta.url)), "../../src/daemon/index.ts"); const proc = spawn("npx", ["tsx", daemonEntry], { detached: true, stdio: "ignore" }); proc.unref(); await sleep(2000); - // Now socket should exist try { await access(sock); console.log("✓ Socket exists after daemon spawn — tool wrapper proceeds silently"); @@ -37,7 +31,6 @@ async function main() { process.exit(1); } - // Cleanup proc.kill(); console.log("✓ All socket guard checks passed"); } |
