test: fix typos in test files

PR-URL: https://github.com/nodejs/node/pull/61408
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Daijiro Wachi authored and Antoine du Hamel committed 2026-02-22 01:20:31 +01:00
1 parent 8103a78b6a
commit 51587d684d
4 files changed
+6 -6

No files matched your search

@@ -4,7 +4,7 @@ const test = require('node:test');
const assert = require('node:assert');
const fs = require('node:fs');
test('Another test that verifies setup flag existance', (t) => {
test('Another test that verifies setup flag existence', (t) => {
const setupFlagPath = process.env.SETUP_FLAG_PATH;
assert.ok(fs.existsSync(setupFlagPath), 'Setup flag file should exist');
@@ -103,7 +103,7 @@ function runWithOrphanListeners(limit, done) {
const limit = 10_000;
describe('when there is a long-lived signal', () => {
it('drops settled dependant signals', (t, done) => {
it('drops settled dependent signals', (t, done) => {
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
setImmediate(() => {
t.assert.strictEqual(signal[dependantSignalsKey].size, 0);
@@ -112,7 +112,7 @@ describe('when there is a long-lived signal', () => {
});
});
it('keeps all active dependant signals', (t, done) => {
it('keeps all active dependent signals', (t, done) => {
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
t.assert.strictEqual(signal[dependantSignalsKey].size, limit);
@@ -132,7 +132,7 @@ it('does not prevent source signal from being GCed if it is short-lived', (t, do
});
});
it('drops settled dependant signals when signal is composite', (t, done) => {
it('drops settled dependent signals when signal is composite', (t, done) => {
const controllers = Array.from({ length: 2 }, () => new AbortController());
// Using WeakRefs to avoid this test to retain information that will make the test fail
+1 -1
View File
@@ -63,7 +63,7 @@ function expect_ok(syscall, resource, err, atime, mtime, statSync) {
const mtime_diff = check_mtime(resource, mtime, statSync);
assert(
// Check up to single-second precision.
// Sub-second precision is OS and fs dependant.
// Sub-second precision is OS and fs dependent.
!err && (mtime_diff < 2) || err && err.code === 'ENOSYS',
`FAILED: expect_ok ${util.inspect(arguments)}
check_mtime: ${mtime_diff}`
@@ -46,7 +46,7 @@ events.captureRejections = true;
{
let _res;
let shouldEnd = false;
// Not using mustCall here, because it is OS-dependant.
// Not using mustCall here, because it is OS-dependent.
const server = createServer((req, res) => {
// So that we cleanly stop
_res = res;