diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index dd429bd208..ba42dd21e3 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -59,7 +59,7 @@ var NodeExec = (function () { result.exitCode = null; var cmdLine = filename + ' ' + cmdLineArgs.join(' '); - var process = nodeExec(cmdLine, function (error, stdout, stderr) { + var process = nodeExec(cmdLine, { maxBuffer: 1 * 1024 * 1024 }, function (error, stdout, stderr) { result.stdout = stdout; result.stderr = stderr; result.exitCode = error ? error.code : 0; diff --git a/_infrastructure/tests/src/exec.ts b/_infrastructure/tests/src/exec.ts index f277d39425..5123d4cfc6 100644 --- a/_infrastructure/tests/src/exec.ts +++ b/_infrastructure/tests/src/exec.ts @@ -57,8 +57,8 @@ class NodeExec implements IExec { var result = new ExecResult(); result.exitCode = null; var cmdLine = filename + ' ' + cmdLineArgs.join(' '); - - var process = nodeExec(cmdLine, function (error, stdout, stderr) { + + var process = nodeExec(cmdLine, {maxBuffer: 1 * 1024 * 1024}, function (error, stdout, stderr) { result.stdout = stdout; result.stderr = stderr; result.exitCode = error ? error.code : 0;