Skip to content

Commit 969defa

Browse files
vipinmenonMylesBorins
authored andcommitted
test: enable mustCall() during child exit
PR-URL: #16915 Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent 9d4abaa commit 969defa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-process-raw-debug.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const assert = require('assert');
44
const os = require('os');
55

@@ -29,10 +29,10 @@ function parent() {
2929
console.log('ok - got expected message');
3030
});
3131

32-
child.on('exit', function(c) {
32+
child.on('exit', common.mustCall(function(c) {
3333
assert(!c);
3434
console.log('ok - child exited nicely');
35-
});
35+
}));
3636
}
3737

3838
function child() {

0 commit comments

Comments
 (0)