Skip to content

Conversation

@Hadis-Fard
Copy link

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@mscdex mscdex added the cluster Issues and PRs related to the cluster subsystem. label Oct 6, 2017
'The state property was not set, current state is ${w.state}');
assert.strictEqual(w.voluntaryMode, true,
'Voluntary exit mode was not set');
'Voluntary exit mode was not set, current voluntary mode is ${w.voluntaryMode}');
Copy link
Member

Choose a reason for hiding this comment

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

The line length is to long. It would actually be best to just remove the message overall. The message from strictEqual should be better than the current situation. The same applies to w.state.

@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 7, 2017
@gireeshpunathil
Copy link
Member

ping @Hadis-Fard

worker.once('listening', common.mustCall(() => {
const w = worker.disconnect();
assert.strictEqual(worker, w, 'did not return a reference');
assert.strictEqual(worker, w, '${worker.id} did not return a reference');
Copy link
Member

Choose a reason for hiding this comment

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

nit: This needs backticks on the string literal rather than single quote marks.

@apapirovski
Copy link
Contributor

Copy link
Contributor

@apapirovski apapirovski left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

LGTM

Trott pushed a commit to Trott/io.js that referenced this pull request Oct 28, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: nodejs#16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@Trott
Copy link
Member

Trott commented Oct 28, 2017

Landed in eefee3e.

Thanks for the contribution! 🎉

@Trott Trott closed this Oct 28, 2017
gibfahn pushed a commit that referenced this pull request Oct 30, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
gibfahn pushed a commit that referenced this pull request Oct 30, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
gibfahn pushed a commit that referenced this pull request Oct 31, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@gibfahn gibfahn mentioned this pull request Oct 31, 2017
Qard pushed a commit to ayojs/ayo that referenced this pull request Nov 2, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: nodejs/node#16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Qard pushed a commit to ayojs/ayo that referenced this pull request Nov 2, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: nodejs/node#16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 16, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Nov 21, 2017
MylesBorins pushed a commit that referenced this pull request Nov 21, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 28, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: #16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Dec 7, 2017
Improve assert messages in test-cluster-worker-disconnect.js.

PR-URL: nodejs/node#16021
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cluster Issues and PRs related to the cluster subsystem. code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants