Skip to content

Commit

Permalink
Ensure cypress exitCode is propagated up to saucectl (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel authored Nov 3, 2020
1 parent 4f6167d commit a8beb28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cypress-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ async function cypressRecorder () {
child.stdout.pipe(ws);
child.stderr.pipe(ws);

child.on('exit', (exitCode) => ws.end(() => {
child.on('exit', (exitCode) => {
fs.closeSync(fd);
process.exit(exitCode);
}));
});
}

exports.cypressRecorder = cypressRecorder;

0 comments on commit a8beb28

Please sign in to comment.