test: added in a better template value for a test message#16826
test: added in a better template value for a test message#16826d1b1 wants to merge 1 commit intonodejs:masterfrom d1b1:contribution
Conversation
|
Commit message is too long. |
There was a problem hiding this comment.
I could be misunderstanding something but wouldn't this just result in true worker was alive after master died? That said I'm not certain what the request was at the Code & Learn.
There was a problem hiding this comment.
probably the intent is to print the actual value of alive to aid diagnostics, but in this case looks like it is redundant - as the value is evident (true, as equating to false was resulted in false) and can be inferred statically.
There was a problem hiding this comment.
Theoretically, at least, isAlive() could return any value. Printing it here may be a bit much, though. I guess it could be:
assert.strictEqual(alive, false, `worker was alive after master died (alive = ${alive})`);I'd be 👍 on that change.
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: nodejs#16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
|
Landed in f7436ba. Thanks for the contribution! 🎉 |
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: #16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: #16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: #16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: #16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Include value that cause failure in error message in test-cluster-master-kill.js. PR-URL: #16826 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test