Skip to content

Commit 033b21b

Browse files
santigimenoMylesBorins
authored andcommitted
test: move more tests from sequential to parallel
Only `test-stdin-from-file.js` has been modified so that the `stdin.txt` is written in a temp directory instead of the `fixtures` directory. PR-URL: #6187 Reviewed-By: James M Snell <[email protected]>
1 parent 2e6e2d6 commit 033b21b

19 files changed

+3
-4
lines changed
File renamed without changes.
File renamed without changes.

β€Žtest/sequential/test-pipe-stream.js β€Žtest/parallel/test-pipe-stream.js

-1
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ function test(clazz, cb) {
6565
test(net.Stream, function() {
6666
test(net.Socket);
6767
});
68-
File renamed without changes.
File renamed without changes.

β€Žtest/sequential/test-sigint-infinite-loop.js β€Žtest/parallel/test-sigint-infinite-loop.js

-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ process.on('exit', function() {
3535
assert.ok(sentKill);
3636
assert.ok(gotChildExit);
3737
});
38-

β€Žtest/sequential/test-stdin-from-file.js β€Žtest/parallel/test-stdin-from-file.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var childProcess = require('child_process');
66
var fs = require('fs');
77

88
var stdoutScript = join(common.fixturesDir, 'echo-close-check.js');
9-
var tmpFile = join(common.fixturesDir, 'stdin.txt');
9+
var tmpFile = join(common.tmpDir, 'stdin.txt');
1010

1111
var cmd = '"' + process.argv[0] + '" "' + stdoutScript + '" < "' +
1212
tmpFile + '"';
@@ -24,6 +24,8 @@ var string = 'abc\nΓΌmlaut.\nsomething else\n' +
2424
'ζœ‰ζ•ˆηš„ζ”Ήε–„δΊ†ε²­ε—εœ°εŒΊθ½εŽηš„ζ”Ώζ²»γ€##ζ΅ŽηŽ°ηŠΆγ€‚\n';
2525

2626

27+
common.refreshTmpDir();
28+
2729
console.log(cmd + '\n\n');
2830

2931
try {

β€Žtest/sequential/test-stream2-httpclient-response-end.js β€Žtest/parallel/test-stream2-httpclient-response-end.js

-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ process.on('exit', function() {
2929
assert(readable_event);
3030
assert(end_event);
3131
});
32-

0 commit comments

Comments
Β (0)