@@ -253,7 +253,7 @@ describe("TerminalProcess with Real Command Output", () => {
253253 } )
254254
255255 it ( "should execute 'echo -n a' and return exactly 'a'" , async ( ) => {
256- const { executionTimeUs } = await testTerminalCommand ( "echo -n a" , "a" )
256+ const { executionTimeUs } = await testTerminalCommand ( "/bin/ echo -n a" , "a" )
257257 console . log (
258258 `'echo -n a' execution time: ${ executionTimeUs } microseconds (${ executionTimeUs / 1000 } milliseconds)` ,
259259 )
@@ -275,17 +275,17 @@ describe("TerminalProcess with Real Command Output", () => {
275275 } )
276276
277277 // Configure the number of lines for the base64 test
278- const BASE64_TEST_LINES = 1000000
278+ const BASE64_TEST_LINES = 1_000_000
279279
280- it ( `should execute 'base64 < /dev/zero | head -n ${ BASE64_TEST_LINES } ' and verify ${ BASE64_TEST_LINES } lines of 'A's` , async ( ) => {
280+ it ( `should execute 'yes AAA... | head -n ${ BASE64_TEST_LINES } ' and verify ${ BASE64_TEST_LINES } lines of 'A's` , async ( ) => {
281281 // Create an expected output pattern that matches what base64 produces
282282 // Each line is 76 'A's followed by a newline
283283 const expectedOutput = Array ( BASE64_TEST_LINES ) . fill ( "A" . repeat ( 76 ) ) . join ( "\n" ) + "\n"
284284
285285 // This command will generate BASE64_TEST_LINES lines of base64 encoded zeros
286286 // Each line will contain 76 'A' characters (base64 encoding of zeros)
287287 const { executionTimeUs, capturedOutput } = await testTerminalCommand (
288- `base64 < /dev/zero | head -n ${ BASE64_TEST_LINES } ` ,
288+ `yes " ${ "A" . repeat ( 76 ) } " | head -n ${ BASE64_TEST_LINES } ` ,
289289 expectedOutput ,
290290 )
291291
0 commit comments