vps-health-api/__tests__
le king fu 6c29526ec0
All checks were successful
CI / verification (pull_request) Successful in 59s
CI / verification (push) Successful in 1m2s
test(health): pin the socket teardown, the unref and the tick guard
The review of #74 left three mutations green: socket.destroy() dropped
from probeTls(), timer.unref() dropped, and the in-flight guard removed.
Each now turns at least one case red: the stub socket must be destroyed
after a handshake, an error and a timeout; the sampler timer must not hold
a ref; two intervals over a slow tick give one probe round, not two.

Refs #73

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:57:02 -05:00
..
fixtures/claude-usage feat(agent): add the claude-usage agent: plan limits, local cache, push 2026-10-04 15:26:15 -04:00
agent-claude-usage.test.js feat(agent): one-shot backfill of the Claude usage history from local transcripts 2026-10-08 20:44:45 -04:00
agent-pg-backup-pull.test.js fix(pg-backup-pull): a failing chmod no longer stops the rotation and the report 2026-10-27 21:34:23 -04:00
agent.test.js feat(agent): push workstation metrics to /hosts/<id> from cron 2026-08-16 12:21:59 -04:00
auth.test.js feat(health): 24 h load history and a "saturated" state 2026-11-04 20:26:05 -05:00
backups.test.js feat(backups): pass the files[] block of status.json through GET /backups 2026-10-12 20:04:12 -04:00
ci.test.js feat(backups): GET /backups and POST /backups/pull 2026-10-10 19:43:07 -04:00
claude-usage-history.test.js fix(server): archive by latest date, never a day past reception 2026-10-08 21:34:54 -04:00
claude-usage.test.js feat(backups): GET /backups and POST /backups/pull 2026-10-10 19:43:07 -04:00
findings.test.js feat(defenseurs): add GET /defenseurs/findings?project=X route 2026-05-12 20:56:56 -04:00
health.test.js test(health): pin the socket teardown, the unref and the tick guard 2026-11-04 20:57:02 -05:00
hosts.test.js fix(ingest): announce Connection: close on a 413 before the socket is cut 2026-11-04 20:25:54 -05:00
load-history.test.js feat(health): 24 h load history and a "saturated" state 2026-11-04 20:26:05 -05:00
state.test.js feat(defenseurs): serve the Sergent's findings state at GET /defenseurs/state 2026-09-24 20:42:20 -04:00
writes.test.js feat(health): 24 h load history and a "saturated" state 2026-11-04 20:26:05 -05:00