Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: address review comments
  • Loading branch information
HarshithaKP committed Mar 11, 2020
commit 520a906cebfbdebcb2afc25fc9beb0cae7d6a841
3 changes: 2 additions & 1 deletion test/parallel/test-worker-init-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ if (process.argv[2] === 'child') {
} else {
// Limit the number of open files, to force workers to fail.
let testCmd = `ulimit -n ${OPENFILES} && `;

testCmd += `${process.execPath} ${__filename} child`;
const cp = child_process.exec(testCmd);
Comment thread
lundibundi marked this conversation as resolved.

// Turn on the child streams for debugging purposes.
let stdout = '';
cp.stdout.setEncoding('utf8');
cp.stdout.on('data', (chunk) => {
Comment thread
addaleax marked this conversation as resolved.
stdout += chunk;
});
let stderr = '';
cp.stdout.setEncoding('utf8');
cp.stderr.on('data', (chunk) => {
Comment thread
addaleax marked this conversation as resolved.
stderr += chunk;
});
Expand Down