Skip to content

Commit

Permalink
test: cleanup test-child-process-buffering.js
Browse files Browse the repository at this point in the history
PR-URL: #8578
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
  • Loading branch information
AdriVanHoudt authored and Fishrock123 committed Oct 11, 2016
1 parent bcba27e commit 5e5a1c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/parallel/test-child-process-buffering.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use strict';
var common = require('../common');
var assert = require('assert');
const common = require('../common');
const assert = require('assert');

function pwd(callback) {
var output = '';
var child = common.spawnPwd();
let output = '';
const child = common.spawnPwd();

child.stdout.setEncoding('utf8');
child.stdout.on('data', function(s) {
Expand All @@ -14,7 +14,7 @@ function pwd(callback) {

child.on('exit', common.mustCall(function(c) {
console.log('exit: ' + c);
assert.equal(0, c);
assert.strictEqual(0, c);
}));

child.on('close', common.mustCall(function() {
Expand All @@ -25,6 +25,6 @@ function pwd(callback) {

pwd(function(result) {
console.dir(result);
assert.equal(true, result.length > 1);
assert.equal('\n', result[result.length - 1]);
assert.strictEqual(true, result.length > 1);
assert.strictEqual('\n', result[result.length - 1]);
});

0 comments on commit 5e5a1c0

Please sign in to comment.