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 Feb 26, 2020
commit 44042cae1fe27e2c4816fd1831e7924740229eb2
8 changes: 4 additions & 4 deletions test/parallel/test-worker-init-failure.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (process.argv[2] === 'child') {
}
Comment thread
addaleax marked this conversation as resolved.

} else {
// Limit the number of open files, to force workers to fail
// Limit the number of open files, to force workers to fail.
let testCmd = `ulimit -n ${OPENFILES} && `;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

Suggested change

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lundibundi, thanks. Removed the extra line.

testCmd += `${process.execPath} ${__filename} child`;
Expand All @@ -45,15 +45,15 @@ if (process.argv[2] === 'child') {
let stderr = '';

cp.on('exit', common.mustCall((code, signal) => {
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
if (stdout !== '')
console.log(`child stdout: ${stdout}`);
if (stderr !== '')
console.log(`child stderr: ${stderr}`);
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
}));

// Turn on the child streams for debugging purpose
// Turn on the child streams for debugging purposes.
cp.stderr.on('data', (chunk) => {
stdout += chunk;
});
Expand Down