Skip to content

Commit

Permalink
test: remove custom message from assertion
Browse files Browse the repository at this point in the history
The custom message means that the values involved are not reported.
Remove the custom message for a more detailed error message.

PR-URL: nodejs#16824
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Marsup authored and cjihrig committed Nov 7, 2017
1 parent a85d6e9 commit 527ddda
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/addons/async-hooks-promise/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const hook1 = async_hooks.createHook({
// Check that the internal field returns the same PromiseWrap passed to init().
assert.strictEqual(
binding.getPromiseField(Promise.resolve(1)),
pwrap,
'Unexpected PromiseWrap');
pwrap);

hook1.disable();

Expand Down

0 comments on commit 527ddda

Please sign in to comment.