Skip to content

Commit b5bb3da

Browse files
committed
fix
1 parent 1671557 commit b5bb3da

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/execProc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function buildExecRunner(failedByAssert, runOpts) {
99
longestProcessTime,
1010
debugProcess,
1111
reformatCommand,
12-
stackAnalize
12+
stackAnalize,
13+
execOpts = {maxBuffer: 1000 * 1024}
1314
} = runOpts
1415

1516
const executeCommandAsync = (cmd, index) => new Promise((resolve) => {
@@ -45,7 +46,7 @@ function buildExecRunner(failedByAssert, runOpts) {
4546

4647
if(debugProcess) {console.log(cmd)}
4748

48-
const proc = exec(cmd)
49+
const proc = exec(cmd, execOpts)
4950

5051
const killTooLongExecution = (proc) => {
5152
if(now - Date.now() < longestProcessTime) {

lib/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function reRunnerBuilder(runOptions) {
101101

102102
const combinedFailedProcesses = [...failedCommands, ...failedByAssert]
103103

104-
console.log(combinedFailedProcesses.length, 'Failed test count')
104+
console.log('Failed processes count:', combinedFailedProcesses.length)
105105

106106
return {
107107
failedCommands,
@@ -112,7 +112,6 @@ function reRunnerBuilder(runOptions) {
112112
return reRunner
113113
}
114114

115-
116115
module.exports = {
117116
buildExeRun: ({
118117
maxSessionCount = 5,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "process-rerun",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"bin": {
55
"protractor-rerun": "./bin/rerun"
66
},

0 commit comments

Comments
 (0)