In three fs benchmarks, a temp file is created in the source tree. For
tests, allow the location to be configurable so it gets written to the
test temp directory instead.
Additionally, shave about a second off the test running time …
Use temp directory for open with O_DSYNC (which indicates a write may
occur) rather than fixtures directory. Additionally, test can be run
on macOS so allow that in addition to Linux.
<!–
Thank you for your pull request. Pleas…
test-fs-fsync makes a copy of a fixture file, but then doesn't do
anything with it and instead operates on the original fixture file. This
appears to be in error, and this change fixes that.
<!–
Thank you for your pull request. Pl…
A subroutine does not work as a replacement for the python command
since one cannot use a subroutine call in a for /F loop.
Similarly to https://github.com/nodejs/node/pull/17298 and https://github.com/nodejs/node/pull/17015, thi…
The test was writing to both REPL input and output but only checking
output. Sending output to both streams seems like it was an error.
/cc @bmeck
<!–
Thank you for your pull request. Please provide a description above and review…
<!–
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: https://github.com/nodejs/no…
In an effort to make the common module slightly less of a monolith and junk drawer, and to reduce the needed parsing/loading of some function from around 2000 times per test run to just 1, this PR removes functions that are only used o…
Backport of https://github.com/nodejs/node/pull/17466
common.hasMultiLocalhost() uses common.PORT under the hood. This is
problematic in parallel tests because another test using port 0 to
get an arbitrary open port may end up getti…
Backport of https://github.com/nodejs/node/pull/17400
Remove common.fixturesDir. All tests now use the the common/fixtures
module instead.
<!–
Thank you for your pull request. Please provide a description above and review
the…
Backport of https://github.com/nodejs/node/pull/17267
Update documentation for test common module so that properties that
are not functions do not specify a return type and functions that do
return values specify the type.
PR-U…
Update documentation for test common module so that properties that
are not functions do not specify a return type and functions that do
return values specify the type.
PR-URL: https://github.com/nodejs/node/pull/17267
Reviewed-B…
Backport of https://github.com/nodejs/node/pull/16954
Remove the practice of starting most error descriptions with "Used when"
or wordier variations.
Change errors of the form:
> Used when the type of an asynchronous resource i…
Backport of https://github.com/nodejs/node/pull/17163
<!–
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchm…
Old style errors are being migrated to internal/errors.js, however, due to depreciation of _tls_legacy.js, it isn't worth the effort to migrate and potentially force users to update their code for this error change.
<!–
Thank you fo…
Adds support for Symbol.asyncIterator into the Readable class.
Fixes: https://github.com/nodejs/node/issues/15709
<!– Remove items that do not apply. For completed items, change [ ] to [x]. –>
Causing the linter job to fail on CI right now.
make -j4 test (UNIX), or vcbuild test (Windows) passesI added these tests
Current coverage is here: https://coverage.nodejs.org/coverage-1fa59b4c7e575ca7/root/internal/crypto/diffiehellm…
I added these tests
Current coverage is here: https://coverage.nodejs.org/coverage-1fa59b…
<!–
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
Contributors guide: https://github.com/nodejs/no…
Refs: https://github.com/nodejs/node/issues/17709
cc @jasnell @joyeecheung
make -j4 test (UNIX), or vcbuild test (Windows) passesMake the preamble to CONTRIBUTING.md more concise and focused.
<!–
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possib…
Allow zero results for short benchmark test.
<!–
Thank you for your pull request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests and possibly benchmarks.
…
Change type annotations for eventName in events API doc from {any} to
{string|symbol} to be consistent with doc changes made in #17440.
Fixes: https://github.com/nodejs/node/issues/17657