Skip to content

Commit b04dd7b

Browse files
BridgeARMylesBorins
authored andcommitted
tools: enable eslint one-var rule
Backport-PR-URL: #19244 PR-URL: #18831 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent d4d7df8 commit b04dd7b

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

benchmark/tls/tls-connect.js

+3-3
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, {

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

+22-23
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)