Skip to content

Move tests from tap library to node:test - #307

Merged
nfriedly merged 11 commits into
masterfrom
no-tap
Aug 25, 2026
Merged

Move tests from tap library to node:test#307
nfriedly merged 11 commits into
masterfrom
no-tap

Conversation

@nfriedly

@nfriedly nfriedly commented Aug 24, 2026

Copy link
Copy Markdown
Owner

This resolves a vulnerability and gets us down to one less dependency. Initially vibed by copilot, but it used up my entire month's allotment of tokens before finishing the job, so I did a bit by hand, then decided to try out a local agent to finish the job.

…nto test_utils.js

- Move requestAndConcat (string result) to test_utils.js
- Add readUrl (Buffer result) for binary/charset-sensitive comparisons
- Remove duplicate getServersAsync, closeServers, request helpers from
  short_response_spec.js, unblocker_spec.js, charset_spec.js, websockets_spec.js
- Standardize cleanup: use closeServers in websockets_spec instead of
  servers.kill() callback directly
- All 42 tests pass
- Restore two lost TODO comments in unblocker-client-spec.js
- Add deprecation notice to legacy callback-based getServers()
- Minor formatting fixes in metarobots_spec.js and websockets_spec.js
Restore four missing comments that were lost during tap→node:test migration:
- metarobots_spec.js: comment explaining why assertion is commented out
- unblocker_spec.js: comments for express req.protocol and trailing / handling
- urlprefixer_spec.js: technical note about recursive process.nextTick warning
async.series doesn't return a Promise, so awaiting it directly would
hang. Wrap in Promise with resolve/reject based on callback.
@nfriedly
nfriedly marked this pull request as ready for review August 25, 2026 21:10
getServers was migrated to async/await in performance.js and is no
longer used anywhere. Inlined its logic directly into getServersAsync
and removed the dead callback-based wrapper.
@nfriedly
nfriedly merged commit 51e4c0c into master Aug 25, 2026
4 checks passed
@nfriedly
nfriedly deleted the no-tap branch August 25, 2026 21:59
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