Skip to content

Commit

Permalink
tests(helpers): specify a larger buffer to avoid read stalling issues…
Browse files Browse the repository at this point in the history
… caused by insufficient buffer size (#13163)
  • Loading branch information
Water-Melon authored and windmgc committed Jun 5, 2024
1 parent 54990ca commit 53a5d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3312,7 +3312,8 @@ luassert:register("assertion", "partial_match", partial_match,
-- (ok, code, stdout, stderr); if `returns` is false,
-- returns either (false, stderr) or (true, stderr, stdout).
function exec(cmd, returns)
local ok, stdout, stderr, _, code = shell.run(cmd, nil, 0)
--100MB for retrieving stdout & stderr
local ok, stdout, stderr, _, code = shell.run(cmd, nil, 0, 1024*1024*100)
if returns then
return ok, code, stdout, stderr
end
Expand Down

0 comments on commit 53a5d80

Please sign in to comment.