Skip to content

Commit e7e3f13

Browse files
TrottMyles Borins
authored and
Myles Borins
committed
test: make stdout buffer test more robust
test-stdout-buffer-flush-on-exit is unfortunately non-deterministic. It will, every so often, pass when it is supposed to fail. This is currently guarded against by running the test with three different long strings. This change increases it to five to reduce the false negatives. PR-URL: #6633 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent e995546 commit e7e3f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/known_issues/test-stdout-buffer-flush-on-exit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (process.argv[2] === 'child') {
1515
process.exit();
1616
}
1717

18-
[16, 18, 20].forEach((exponent) => {
18+
[22, 21, 20, 19, 18, 17, 16, 16, 17, 18, 19, 20, 21, 22].forEach((exponent) => {
1919
const bigNum = Math.pow(2, exponent);
2020
const longLine = lineSeed.repeat(bigNum);
2121
const cmd = `${process.execPath} ${__filename} child ${exponent} ${bigNum}`;

0 commit comments

Comments
 (0)