diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-05-26 17:53:06 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-06-03 23:08:24 +0200 |
commit | 1dc3272bb9c2ecd442efd5b978a852a7da31c1e9 (patch) | |
tree | d835fa61e0503a8b5c4405c03003085129c2d0fe /test/async-hooks/test-udpwrap.js | |
parent | 8741e3c7501cbe66696bd3fad4a0a923e76ba11d (diff) | |
download | android-node-v8-1dc3272bb9c2ecd442efd5b978a852a7da31c1e9.tar.gz android-node-v8-1dc3272bb9c2ecd442efd5b978a852a7da31c1e9.tar.bz2 android-node-v8-1dc3272bb9c2ecd442efd5b978a852a7da31c1e9.zip |
test: improve async hooks test error messages
Improve error messages in the async hooks tests, mostly by removing
unhelpful `message` parameters for assertions.
PR-URL: https://github.com/nodejs/node/pull/13243
Reviewed-By: Kunal Pathak <kunal.pathak@microsoft.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/async-hooks/test-udpwrap.js')
-rw-r--r-- | test/async-hooks/test-udpwrap.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/async-hooks/test-udpwrap.js b/test/async-hooks/test-udpwrap.js index db81db8339..66142911de 100644 --- a/test/async-hooks/test-udpwrap.js +++ b/test/async-hooks/test-udpwrap.js @@ -14,11 +14,10 @@ const sock = dgram.createSocket('udp4'); const as = hooks.activitiesOfTypes('UDPWRAP'); const udpwrap = as[0]; -assert.strictEqual(as.length, 1, - 'one UDPWRAP handle after dgram.createSocket call'); -assert.strictEqual(udpwrap.type, 'UDPWRAP', 'udp wrap'); -assert.strictEqual(typeof udpwrap.uid, 'number', 'uid is a number'); -assert.strictEqual(typeof udpwrap.triggerId, 'number', 'triggerId is a number'); +assert.strictEqual(as.length, 1); +assert.strictEqual(udpwrap.type, 'UDPWRAP'); +assert.strictEqual(typeof udpwrap.uid, 'number'); +assert.strictEqual(typeof udpwrap.triggerId, 'number'); checkInvocations(udpwrap, { init: 1 }, 'after dgram.createSocket call'); sock.close(common.mustCall(onsockClosed)); |