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 44bc65e

Browse filesBrowse files
sreepurnajastigibfahn
authored andcommitted
test: utilize common.mustCall() on child exit
PR-URL: #16996 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent d748e4a commit 44bc65e
Copy full SHA for 44bc65e

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-child-process-fork-exec-argv.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-child-process-fork-exec-argv.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 child_process = require('child_process');
2626
const spawn = child_process.spawn;
@@ -43,7 +43,7 @@ if (process.argv[2] === 'fork') {
4343
out += chunk;
4444
});
4545

46-
child.on('exit', function() {
46+
child.on('exit', common.mustCall(function() {
4747
assert.deepStrictEqual(JSON.parse(out), execArgv);
48-
});
48+
}));
4949
}

0 commit comments

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