Skip to content

Commit eaab17c

Browse files
santigimenojasnell
authored andcommitted
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: #6087 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Johan BergstrΓΆm <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Claudio Rodriguez <[email protected]>
1 parent a9aa199 commit eaab17c

20 files changed

+13
-8
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'use strict';
2+
// This tests that pausing and resuming stdin does not hang and timeout
3+
// when done in a child process. See test/parallel/test-stdin-pause-resume.js
4+
const common = require('../common');
5+
const assert = require('assert');
6+
const child_process = require('child_process');
7+
const path = require('path');
8+
const cp = child_process.spawn(process.execPath,
9+
[path.resolve(__dirname, 'test-stdin-pause-resume.js')]);
10+
11+
cp.on('exit', common.mustCall((code) => {
12+
assert.equal(code, 0);
13+
}));

β€Žtest/sequential/test-stdin-child-proc.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
Β (0)