GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: enable eslint one-var rule · nodejs/node@b04dd7b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark/tls
    • tls-connect.js
  • test/parallel
    • test-cluster-worker-kill.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/tls/tls-connect.js‎

Copy file name to clipboardExpand all lines: benchmark/tls/tls-connect.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
2-
var fs = require('fs'),
3-
path = require('path'),
4-
tls = require('tls');
2+
const fs = require('fs');
3+
const path = require('path');
4+
const tls = require('tls');
55

66
const common = require('../common.js');
77
const bench = common.createBenchmark(main, {
Collapse file

‎test/parallel/test-cluster-worker-kill.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-worker-kill.js
+22-23Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,28 @@ if (cluster.isWorker) {
4040

4141
} else if (cluster.isMaster) {
4242

43-
const KILL_SIGNAL = 'SIGKILL',
44-
expected_results = {
45-
cluster_emitDisconnect: [1, "the cluster did not emit 'disconnect'"],
46-
cluster_emitExit: [1, "the cluster did not emit 'exit'"],
47-
cluster_exitCode: [null, 'the cluster exited w/ incorrect exitCode'],
48-
cluster_signalCode: [KILL_SIGNAL,
49-
'the cluster exited w/ incorrect signalCode'],
50-
worker_emitDisconnect: [1, "the worker did not emit 'disconnect'"],
51-
worker_emitExit: [1, "the worker did not emit 'exit'"],
52-
worker_state: ['disconnected', 'the worker state is incorrect'],
53-
worker_exitedAfter: [false,
54-
'the .exitedAfterDisconnect flag is incorrect'],
55-
worker_died: [true, 'the worker is still running'],
56-
worker_exitCode: [null, 'the worker exited w/ incorrect exitCode'],
57-
worker_signalCode: [KILL_SIGNAL,
58-
'the worker exited w/ incorrect signalCode']
59-
},
60-
results = {
61-
cluster_emitDisconnect: 0,
62-
cluster_emitExit: 0,
63-
worker_emitDisconnect: 0,
64-
worker_emitExit: 0
65-
};
43+
const KILL_SIGNAL = 'SIGKILL';
44+
const expected_results = {
45+
cluster_emitDisconnect: [1, "the cluster did not emit 'disconnect'"],
46+
cluster_emitExit: [1, "the cluster did not emit 'exit'"],
47+
cluster_exitCode: [null, 'the cluster exited w/ incorrect exitCode'],
48+
cluster_signalCode: [KILL_SIGNAL,
49+
'the cluster exited w/ incorrect signalCode'],
50+
worker_emitDisconnect: [1, "the worker did not emit 'disconnect'"],
51+
worker_emitExit: [1, "the worker did not emit 'exit'"],
52+
worker_state: ['disconnected', 'the worker state is incorrect'],
53+
worker_exitedAfter: [false, 'the .exitedAfterDisconnect flag is incorrect'],
54+
worker_died: [true, 'the worker is still running'],
55+
worker_exitCode: [null, 'the worker exited w/ incorrect exitCode'],
56+
worker_signalCode: [KILL_SIGNAL,
57+
'the worker exited w/ incorrect signalCode']
58+
};
59+
const results = {
60+
cluster_emitDisconnect: 0,
61+
cluster_emitExit: 0,
62+
worker_emitDisconnect: 0,
63+
worker_emitExit: 0
64+
};
6665

6766

6867
// start worker

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.