mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
benchmark,doc,lib,test: capitalize comments
This updates a lot of comments. PR-URL: https://github.com/nodejs/node/pull/26223 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
This commit is contained in:
parent
7b674697d8
commit
9edce1e12a
200 changed files with 346 additions and 347 deletions
|
@ -58,7 +58,7 @@ test(function serverTimeout(cb) {
|
|||
|
||||
test(function serverRequestTimeout(cb) {
|
||||
const server = http.createServer(common.mustCall((req, res) => {
|
||||
// just do nothing, we should get a timeout event.
|
||||
// Just do nothing, we should get a timeout event.
|
||||
const s = req.setTimeout(50, common.mustCall((socket) => {
|
||||
socket.destroy();
|
||||
server.close();
|
||||
|
@ -79,7 +79,7 @@ test(function serverRequestTimeout(cb) {
|
|||
|
||||
test(function serverResponseTimeout(cb) {
|
||||
const server = http.createServer(common.mustCall((req, res) => {
|
||||
// just do nothing, we should get a timeout event.
|
||||
// Just do nothing, we should get a timeout event.
|
||||
const s = res.setTimeout(50, common.mustCall((socket) => {
|
||||
socket.destroy();
|
||||
server.close();
|
||||
|
@ -96,7 +96,7 @@ test(function serverResponseTimeout(cb) {
|
|||
|
||||
test(function serverRequestNotTimeoutAfterEnd(cb) {
|
||||
const server = http.createServer(common.mustCall((req, res) => {
|
||||
// just do nothing, we should get a timeout event.
|
||||
// Just do nothing, we should get a timeout event.
|
||||
const s = req.setTimeout(50, common.mustNotCall());
|
||||
assert.ok(s instanceof http.IncomingMessage);
|
||||
res.on('timeout', common.mustCall());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue