-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: improve assert message for debugging #6581
Conversation
Previously, the assertion changed in this commit would print the same message no matter which of the four test cases failed. The assert has been changed so that it will indicate which test case failed. Refs: nodejs#6577
LGTM |
2 similar comments
LGTM |
LGTM |
LGTM |
@Trott while you are at it, you should update the allocation of the buffers to the new method, like what was done for the ipv4 equivalent: https://github.com/nodejs/node/blob/master/test/parallel/test-dgram-send-default-host.js#L9-L12 |
LGTM |
I think the commit message needs to be a little more explicative
|
LGTM |
SGTM |
Checklist
Affected core subsystem(s)
test
Description of change
Previously, the assertion changed in this commit would print the same
message no matter which of the four test cases failed. The assert has
been changed so that it will indicate which test case failed.
Refs: #6577