Skip to content

test(hono): keep honeytoken tests offline - #98

Merged
cport1 merged 1 commit into
mainfrom
fix/hono-test-network-timeout
Nov 16, 2026
Merged

cport1 merged 1 commit into
mainfrom
fix/hono-test-network-timeout

Conversation

@cport1

@cport1 cport1 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What failed

The post-merge main run for #97 failed in Node 20 because the Hono test does not commit a stale Content-Length exceeded Jest's five-second timeout.

The honeytoken response-decoration tests were using a dummy API key with skipLocalAnalysis: true, which made every request call production ingest. The PR checks happened to finish those calls quickly; the merged run did not.

Fix

  • stub the detector response inside the Hono honeytoken test group
  • restore the real global fetch after each test
  • assert the ingest-shaped test request went through the stub
  • keep the production timeout unchanged

Validation

  • npm run build -w @webdecoy/node -w @webdecoy/hono
  • npm test -w @webdecoy/hono -- --runInBand — 12/12 pass in ~1 second
  • npm run lint -w @webdecoy/hono
  • git diff --check

@cport1
cport1 merged commit f719484 into main Nov 16, 2026
2 checks passed
@cport1
cport1 deleted the fix/hono-test-network-timeout branch November 16, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant