Skip to content

Commit 7c55f59

Browse files
TrottMyles Borins
authored andcommitted
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 7813af7 commit 7c55f59

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‎

Lines changed: 1 addition & 1 deletion
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
constbigNum=Math.pow(2,exponent);
2020
constlongLine=lineSeed.repeat(bigNum);
2121
constcmd=`${process.execPath}${__filename} child ${exponent}${bigNum}`;

0 commit comments

Comments
(0)