| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cb39e4c commit 7327d14
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,9 +25,14 @@ const assert = require('assert'); | |||
| 25 | 25 | ||
| 26 | 26 | // If child process output to console and exit | |
| 27 | 27 | // The console.log statements here are part of the test. | |
| 28 | + // Note: This test verifies specific behavior that is *not* guaranteed | ||
| 29 | + // by Node.js's API contract. See https://nodejs.org/api/process.html#processexitcode. | ||
| 30 | + // We are still generally interested in knowing when this test breaks, | ||
| 31 | + // since applications may rely on the implicit behavior of stdout having | ||
| 32 | + // a buffer size up to which they can write data synchronously. | ||
| 28 | 33 | if (process.argv[2] === 'child') { | |
| 29 | 34 | console.log('hello'); | |
| 30 | - for (let i = 0; i < 200; i++) { | ||
| 35 | + for (let i = 0; i < 100; i++) { | ||
| 31 | 36 | console.log('filler'); | |
| 32 | 37 | } | |
| 33 | 38 | console.log('goodbye'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments