summaryrefslogtreecommitdiff
path: root/test/async-hooks
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-07 01:03:53 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-10 00:44:40 +0100
commitf8763bb077db2f0be74e353c0b4f9e353c0fffa8 (patch)
treec73128074daa65d2e72e4d2a86a5b08059888144 /test/async-hooks
parent01a5300f3f4f788a043f6b5fe72e2b7b641dfb6c (diff)
downloadandroid-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.gz
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.tar.bz2
android-node-v8-f8763bb077db2f0be74e353c0b4f9e353c0fffa8.zip
benchmark,doc,lib,test: capitalize comments
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/async-hooks')
-rw-r--r--test/async-hooks/test-graph.signal.js4
-rw-r--r--test/async-hooks/test-promise.promise-before-init-hooks.js2
-rw-r--r--test/async-hooks/test-signalwrap.js4
-rw-r--r--test/async-hooks/test-tcpwrap.js2
4 files changed, 6 insertions, 6 deletions
diff --git a/test/async-hooks/test-graph.signal.js b/test/async-hooks/test-graph.signal.js
index 4c5b857fc2..c2f889e7b0 100644
--- a/test/async-hooks/test-graph.signal.js
+++ b/test/async-hooks/test-graph.signal.js
@@ -23,10 +23,10 @@ function onsigusr2() {
count++;
if (count === 1) {
- // trigger same signal handler again
+ // Trigger same signal handler again
exec(`kill -USR2 ${process.pid}`);
} else {
- // install another signal handler
+ // Install another signal handler
process.removeAllListeners('SIGUSR2');
process.on('SIGUSR2', common.mustCall(onsigusr2Again));
diff --git a/test/async-hooks/test-promise.promise-before-init-hooks.js b/test/async-hooks/test-promise.promise-before-init-hooks.js
index 0f74c968e6..51787b8065 100644
--- a/test/async-hooks/test-promise.promise-before-init-hooks.js
+++ b/test/async-hooks/test-promise.promise-before-init-hooks.js
@@ -9,7 +9,7 @@ const p = new Promise(common.mustCall(function executor(resolve) {
resolve(5);
}));
-// init hooks after promise was created
+// Init hooks after promise was created
const hooks = initHooks({ allowNoInit: true });
hooks.enable();
diff --git a/test/async-hooks/test-signalwrap.js b/test/async-hooks/test-signalwrap.js
index 5bc02e6dc4..b906355af7 100644
--- a/test/async-hooks/test-signalwrap.js
+++ b/test/async-hooks/test-signalwrap.js
@@ -42,7 +42,7 @@ function onsigusr2() {
signal1, { init: 1, before: 1 },
' signal1: when first SIGUSR2 handler is called for the first time');
- // trigger same signal handler again
+ // Trigger same signal handler again
exec(`kill -USR2 ${process.pid}`);
} else {
// second invocation
@@ -50,7 +50,7 @@ function onsigusr2() {
signal1, { init: 1, before: 2, after: 1 },
'signal1: when first SIGUSR2 handler is called for the second time');
- // install another signal handler
+ // Install another signal handler
process.removeAllListeners('SIGUSR2');
process.on('SIGUSR2', common.mustCall(onsigusr2Again));
diff --git a/test/async-hooks/test-tcpwrap.js b/test/async-hooks/test-tcpwrap.js
index a01a1fc4fe..3256a1598b 100644
--- a/test/async-hooks/test-tcpwrap.js
+++ b/test/async-hooks/test-tcpwrap.js
@@ -79,7 +79,7 @@ function ontcpConnection(serverConnection) {
return;
}
- // only focusing on TCPCONNECTWRAP here
+ // Only focusing on TCPCONNECTWRAP here
const tcpconnects = hooks.activitiesOfTypes('TCPCONNECTWRAP');
assert.strictEqual(tcpconnects.length, 1);
tcpconnect = tcpconnects[0];