Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c58c191

Browse filesBrowse files
suman-mitragibfahn
authored andcommitted
test: wrap callback in common.mustCall
PR-URL: #17173 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 096bd53 commit c58c191
Copy full SHA for c58c191

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-cluster-message.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cluster-message.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424
const assert = require('assert');
2525
const cluster = require('cluster');
2626
const net = require('net');
@@ -132,9 +132,9 @@ if (cluster.isWorker) {
132132
worker.kill();
133133
});
134134

135-
worker.on('exit', function() {
135+
worker.on('exit', common.mustCall(function() {
136136
process.exit(0);
137-
});
137+
}));
138138
});
139139

140140
process.once('exit', function() {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.