test: reduce iteration count in test-child-process-stdout-flush-exit

PR-URL: https://github.com/nodejs/node/pull/58273
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel 2025-05-13 21:10:09 +02:00 committed by GitHub
parent 59a763ea77
commit f94d6766f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -25,9 +25,14 @@ const assert = require('assert');
// If child process output to console and exit
// The console.log statements here are part of the test.
// Note: This test verifies specific behavior that is *not* guaranteed
// by Node.js's API contract. See https://nodejs.org/api/process.html#processexitcode.
// We are still generally interested in knowing when this test breaks,
// since applications may rely on the implicit behavior of stdout having
// a buffer size up to which they can write data synchronously.
if (process.argv[2] === 'child') {
console.log('hello');
for (let i = 0; i < 200; i++) {
for (let i = 0; i < 100; i++) {
console.log('filler');
}
console.log('goodbye');