summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-set-blocking.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-child-process-set-blocking.js')
-rw-r--r--test/parallel/test-child-process-set-blocking.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/parallel/test-child-process-set-blocking.js b/test/parallel/test-child-process-set-blocking.js
index 6cdfbbc9a2..fb0b11f433 100644
--- a/test/parallel/test-child-process-set-blocking.js
+++ b/test/parallel/test-child-process-set-blocking.js
@@ -1,20 +1,14 @@
'use strict';
-require('../common');
+const common = require('../common');
var assert = require('assert');
var ch = require('child_process');
var SIZE = 100000;
-var childGone = false;
var cp = ch.spawn('python', ['-c', 'print ' + SIZE + ' * "C"'], {
stdio: 'inherit'
});
-cp.on('exit', function(code) {
- childGone = true;
+cp.on('exit', common.mustCall(function(code) {
assert.equal(0, code);
-});
-
-process.on('exit', function() {
- assert.ok(childGone);
-});
+}));