node/test/async-hooks
Matt Sergeant aa8655a0da
async-hooks,net: ensure asyncId=null if no handle
If the .listen() hasn't been called on the server, there is no handle
object. In this case use null as the triggerAsyncId.

Fixes: https://github.com/nodejs/node/issues/13548
PR-URL: https://github.com/nodejs/node/pull/13938
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
2017-07-05 15:51:08 +02:00
..
coverage.md test: adding tests for initHooks API 2017-05-10 22:22:33 +02:00
hook-checks.js test: adding tests for initHooks API 2017-05-10 22:22:33 +02:00
init-hooks.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-callback-error.js test: improve async-hooks/test-callback-error 2017-06-21 06:13:04 -04:00
test-connection.ssl.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-crypto-pbkdf2.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-crypto-randomBytes.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-embedder.api.async-resource.after-on-destroyed.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-embedder.api.async-resource.before-on-destroyed.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-embedder.api.async-resource.improper-order.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-embedder.api.async-resource.improper-unwind.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-embedder.api.async-resource.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-emit-before-after.js test,async_hooks: stabilize tests on Windows 2017-07-01 22:02:39 -04:00
test-emit-init.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-enable-disable.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-fseventwrap.js test: accommodate AIX by watching file 2017-06-20 07:47:46 -07:00
test-fsreqwrap-access.js test: improve async hooks test error messages 2017-06-03 23:08:24 +02:00
test-fsreqwrap-readFile.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-getaddrinforeqwrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-getnameinforeqwrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.connection.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-graph.fsreq-readFile.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.intervals.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.pipe.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.pipeconnect.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.shutdown.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-graph.signal.js test,async_hooks: stabilize tests on Windows 2017-07-01 22:02:39 -04:00
test-graph.statwatcher.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.tcp.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-graph.timeouts.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-graph.tls-write.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-httpparser.request.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-httpparser.response.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-immediate.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-net-get-connections.js async-hooks,net: ensure asyncId=null if no handle 2017-07-05 15:51:08 +02:00
test-pipeconnectwrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-pipewrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-promise.chain-promise-before-init-hooks.js async_hooks: use parent promise as triggerId 2017-06-03 22:42:33 +02:00
test-promise.js src,lib,test,doc: correct misspellings 2017-06-17 19:17:46 +02:00
test-promise.promise-before-init-hooks.js src,lib,test,doc: correct misspellings 2017-06-17 19:17:46 +02:00
test-querywrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-shutdownwrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-signalwrap.js test,async_hooks: stabilize tests on Windows 2017-07-01 22:02:39 -04:00
test-statwatcher.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-tcpwrap.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-timerwrap.setInterval.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-timerwrap.setTimeout.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-tlswrap.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-ttywrap.readstream.js test,async_hooks: stabilize tests on Windows 2017-07-01 22:02:39 -04:00
test-ttywrap.writestream.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-udpsendwrap.js src,lib,test,doc: correct misspellings 2017-06-17 19:17:46 +02:00
test-udpwrap.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
test-writewrap.js test: simplify test skipping 2017-07-04 12:41:49 +03:00
test-zlib.zlib-binding.deflate.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00
testcfg.py test: adding tests for initHooks API 2017-05-10 22:22:33 +02:00
tick.js test: adding tests for initHooks API 2017-05-10 22:22:33 +02:00
verify-graph.js async_hooks: rename currentId and triggerId 2017-06-14 12:39:53 +02:00