Skip to content

Commit

Permalink
Buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
luketomlinson committed May 20, 2021
1 parent e10d496 commit f844327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/exec/__tests__/exec.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ describe('@actions/exec', () => {
)

expect(exitCodeOut).toBe(0)
expect(Buffer.byteLength(stdout || '', 'utf8')).toBe(2 ** 24)
expect(Buffer.byteLength(listenerOut, 'utf8')).toBe(2 ** 24)
expect(Buffer.byteLength(stdout || '', 'utf8')).toBe(2 ** 32)
expect(Buffer.byteLength(listenerOut, 'utf8')).toBe(2 ** 32)
expect(numFullBuffers).toBeGreaterThan(1)

let listenerErr = ''
Expand Down
2 changes: 1 addition & 1 deletion packages/exec/__tests__/scripts/stdoutoutputlarge.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//Default highWaterMark for readable stream buffers us 64K (2^16)
//so we go over that to get more than a buffer's worth
process.stdout.write('a'.repeat(2**24));
process.stdout.write('a'.repeat(2**32));

0 comments on commit f844327

Please sign in to comment.