summaryrefslogtreecommitdiff
path: root/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js')
-rw-r--r--test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js b/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
index d19b522e29..7cd4b90c00 100644
--- a/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
+++ b/test/parallel/test-stdout-cannot-be-closed-child-process-pipe.js
@@ -24,9 +24,9 @@ function parent() {
});
child.on('close', function(code, signal) {
- assert(code);
+ assert.strictEqual(code, 0);
+ assert.strictEqual(err, '');
assert.strictEqual(out, 'foo');
- assert(/process\.stdout cannot be closed/.test(err));
console.log('ok');
});
}