test: move some test from sequential to parallel
The only test with modifications is `test-stdin-child-proc` that was passing when it should not because the exit code of the child process was not being checked. PR-URL: https://github.com/nodejs/node/pull/6087 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Claudio Rodriguez <cjrodr@yahoo.com>
This commit is contained in:
parent
a9aa199543
commit
eaab17c6a7
13
test/parallel/test-stdin-child-proc.js
Normal file
13
test/parallel/test-stdin-child-proc.js
Normal file
@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
// This tests that pausing and resuming stdin does not hang and timeout
|
||||
// when done in a child process. See test/parallel/test-stdin-pause-resume.js
|
||||
const common = require('../common');
|
||||
const assert = require('assert');
|
||||
const child_process = require('child_process');
|
||||
const path = require('path');
|
||||
const cp = child_process.spawn(process.execPath,
|
||||
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]);
|
||||
|
||||
cp.on('exit', common.mustCall((code) => {
|
||||
assert.equal(code, 0);
|
||||
}));
|
@ -1,8 +0,0 @@
|
||||
'use strict';
|
||||
// This tests that pausing and resuming stdin does not hang and timeout
|
||||
// when done in a child process. See test/simple/test-stdin-pause-resume.js
|
||||
require('../common');
|
||||
var child_process = require('child_process');
|
||||
var path = require('path');
|
||||
child_process.spawn(process.execPath,
|
||||
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]);
|
Loading…
x
Reference in New Issue
Block a user