Skip to content

Commit e890344

Browse files
committed
test: fix spelling in test case comments
PR-URL: #18018 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]>
1 parent 61b4d60 commit e890344

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+65
-64
lines changed

test/abort/test-http-parser-consume.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ if (process.argv[2] === 'child') {
1111
const rr = get({ port: server.address().port }, common.mustCall(() => {
1212
// This bad input (0) should abort the parser and the process
1313
rr.parser.consume(0);
14-
// This line should be unreachanble.
14+
// This line should be unreachable.
1515
assert.fail('this should be unreachable');
1616
}));
1717
}));
1818
} else {
19-
// super-proces
19+
// super-process
2020
const child = spawn(process.execPath, [__filename, 'child']);
2121
child.stdout.on('data', common.mustNotCall());
2222

test/async-hooks/hook-checks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require('../common');
1111
* @param {Object} activity including timestamps for each life time event,
1212
* i.e. init, before ...
1313
* @param {Object} hooks the expected life time event invocations with a count
14-
* indicating how oftn they should have been invoked,
14+
* indicating how often they should have been invoked,
1515
* i.e. `{ init: 1, before: 2, after: 2 }`
1616
* @param {String} stage the name of the stage in the test at which we are
1717
* checking the invocations

test/async-hooks/test-internal-nexttick-default-trigger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const common = require('../common');
44

55
// This tests ensures that the triggerId of both the internal and external
6-
// nexTick function sets the triggerAsyncId correctly.
6+
// nextTick function sets the triggerAsyncId correctly.
77

88
const assert = require('assert');
99
const async_hooks = require('async_hooks');

test/async-hooks/test-pipeconnectwrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function onlisten() {
5353
const awaitOnconnectCalls = new Set(['server', 'client']);
5454
function maybeOnconnect(source) {
5555
// both server and client must call onconnect. On most OS's waiting for
56-
// the client is sufficient, but on CertOS 5 the sever needs to respond too.
56+
// the client is sufficient, but on CentOS 5 the sever needs to respond too.
5757
assert.ok(awaitOnconnectCalls.size > 0);
5858
awaitOnconnectCalls.delete(source);
5959
if (awaitOnconnectCalls.size > 0) return;

test/async-hooks/verify-graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function pruneTickObjects(activities) {
3232
foundTickObject = true;
3333

3434
// point all triggerAsyncIds that point to the tickObject
35-
// to its triggerAsyncId and findally remove it from the activities
35+
// to its triggerAsyncId and finally remove it from the activities
3636
const tickObject = activities[tickObjectIdx];
3737
const newTriggerId = tickObject.triggerAsyncId;
3838
const oldTriggerId = tickObject.uid;

test/common/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
8181
const async_wrap = process.binding('async_wrap');
8282

8383
process.on('exit', () => {
84-
// itterate through handles to make sure nothing crashes
84+
// iterate through handles to make sure nothing crashes
8585
for (const k in initHandles)
8686
util.inspect(initHandles[k]);
8787
});

test/fixtures/net-fd-passing-receiver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ receiver = net.createServer(function(socket) {
4545
});
4646
});
4747

48-
/* To signal the test runne we're up and listening */
48+
/* To signal the test runner we're up and listening */
4949
receiver.on('listening', function() {
5050
console.log('ready');
5151
});

test/parallel/test-async-hooks-http-agent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const http = require('http');
88
// Checks that an http.Agent properly asyncReset()s a reused socket handle, and
99
// re-assigns the fresh async id to the reused `net.Socket` instance.
1010

11-
// Make sure a single socket is transpartently reused for 2 requests.
11+
// Make sure a single socket is transparently reused for 2 requests.
1212
const agent = new http.Agent({
1313
keepAlive: true,
1414
keepAliveMsecs: Infinity,

test/parallel/test-async-hooks-promise-enable-disable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ let p_inits = 0;
1111
common.crashOnUnhandledRejection();
1212

1313
// Not useful to place common.mustCall() around 'exit' event b/c it won't be
14-
// able to check it anway.
14+
// able to check it anyway.
1515
process.on('exit', (code) => {
1616
if (code !== 0)
1717
return;
1818
if (p_er !== null)
1919
throw p_er;
20-
// Expecint exactly 2 PROMISE types to reach init.
20+
// Expecting exactly 2 PROMISE types to reach init.
2121
assert.strictEqual(p_inits, EXPECTED_INITS);
2222
});
2323

test/parallel/test-async-wrap-pop-id-during-load.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (process.argv[2] === 'async') {
88
throw new Error();
99
}
1010
(async function() { await fn(); })();
11-
// While the above should error, just in case it dosn't the script shouldn't
11+
// While the above should error, just in case it doesn't the script shouldn't
1212
// fork itself indefinitely so return early.
1313
return;
1414
}

0 commit comments

Comments
 (0)