node/test/async-hooks
Luigi Pinca 65ec9f35e9 test: defer invocation checks
Do not immediately check the `tcpserver` hook invocations when it
closes. Do it in the next iteration of the event loop.

PR-URL: https://github.com/nodejs/node/pull/42340
Refs: https://github.com/nodejs/node/pull/42340#issuecomment-1290964192
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-11-05 19:53:24 +01:00
..
async-hooks.status test: mark flaky tests on smartos 2022-06-28 18:06:48 +01:00
coverage.md doc: format markdown files in test directory 2021-10-04 20:19:11 -07:00
hook-checks.js lib,test,tools: use consistent JSDoc types 2021-11-29 06:48:00 +00:00
init-hooks.js process: ignore asyncId 0 in exception handler 2022-01-18 22:05:12 +01:00
test-async-await.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-async-exec-resource-http-32060.js src: pass resource object along with InternalMakeCallback 2020-03-04 17:20:57 -05:00
test-async-exec-resource-http.js async_hooks: add executionAsyncResource 2020-02-11 20:59:09 +01:00
test-async-exec-resource-match.js async_hooks: executionAsyncResource matches in hooks 2020-02-26 14:58:21 +01:00
test-async-local-storage-args.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-async-await.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-async-functions.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-dgram.js test: add AsyncLocalStorage tests using udp, tcp and tls sockets 2021-11-18 18:42:23 +05:30
test-async-local-storage-enable-disable.js test: improve clarity of ALS-enable-disable.js 2021-04-02 18:37:35 +02:00
test-async-local-storage-enter-with.js async_hooks: add sync enterWith to ALS 2020-03-09 14:24:21 -04:00
test-async-local-storage-errors.js async_hooks: fix AsyncLocalStorage in unhandledRejection cases 2021-12-21 09:33:45 -06:00
test-async-local-storage-gcable.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-http-agent.js async_hooks: don't reuse resource in HttpAgent when queued 2020-07-30 19:26:44 +03:00
test-async-local-storage-http.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-misc-stores.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-nested.js async_hooks: merge run and exit methods 2020-04-13 18:37:44 +02:00
test-async-local-storage-no-mix-contexts.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-promises.js async_hooks: add store arg in AsyncLocalStorage 2020-02-27 15:00:23 -05:00
test-async-local-storage-socket.js test: add AsyncLocalStorage tests using udp, tcp and tls sockets 2021-11-18 18:42:23 +05:30
test-async-local-storage-thenable.js test: AsyncLocalStorage works with thenables 2020-06-24 15:44:49 +02:00
test-async-local-storage-tlssocket.js test: add AsyncLocalStorage tests using udp, tcp and tls sockets 2021-11-18 18:42:23 +05:30
test-async-wrap-providers.js async_hooks: expose async_wrap providers 2021-11-12 21:48:34 +00:00
test-callback-error.js tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-05 07:42:19 -08:00
test-crypto-pbkdf2.js
test-crypto-randomBytes.js
test-destroy-not-blocked.js async_hooks: execute destroy hooks earlier 2020-08-02 23:13:42 +02:00
test-disable-in-init.js test: use arrow functions in async-hooks tests 2019-12-02 20:03:17 +05:30
test-embedder.api.async-resource-no-type.js test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test-embedder.api.async-resource.js test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test-embedder.api.async-resource.runInAsyncScope.js
test-emit-after-on-destroyed.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-emit-before-after.js async_hooks: remove internal only error checking 2020-01-11 19:20:45 -08:00
test-emit-before-on-destroyed.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-emit-init.js async_hooks: remove internal only error checking 2020-01-11 19:20:45 -08:00
test-enable-disable.js test: adjust comments for upcoming lint rule 2020-10-07 04:36:02 -07:00
test-enable-in-init.js
test-filehandle-no-reuse.js async_hooks: avoid resource reuse by FileHandle 2020-03-11 19:26:10 +01:00
test-fseventwrap.js test: fix ibmi skip message 2021-03-22 10:56:05 -07:00
test-fsreqcallback-access.js
test-fsreqcallback-readFile.js
test-getaddrinforeqwrap.js
test-getnameinforeqwrap.js
test-graph.fsreq-readFile.js
test-graph.http.js http: use Keep-Alive by default in global agents 2022-06-29 12:48:52 +02:00
test-graph.intervals.js
test-graph.pipe.js
test-graph.pipeconnect.js test: use arrow functions in async-hooks tests 2019-12-02 20:03:17 +05:30
test-graph.shutdown.js
test-graph.signal.js test: permit test-graph.signal to work without test runner 2019-06-21 20:57:32 -06:00
test-graph.statwatcher.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-graph.tcp.js
test-graph.timeouts.js
test-graph.tls-write-12.js
test-graph.tls-write.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-http-agent-handle-reuse-parallel.js test: remove unnecessary noop function args to mustCall() 2022-10-20 13:13:32 +00:00
test-http-agent-handle-reuse-serial.js test: remove unnecessary noop function args to mustCall() 2022-10-20 13:13:32 +00:00
test-httpparser-reuse.js test: use consistent test naming 2019-07-18 11:48:58 -07:00
test-httpparser.request.js test: remove unnecessary --expose-internals flags 2019-10-10 11:59:31 -07:00
test-httpparser.response.js test: remove unnecessary --expose-internals flags 2019-10-10 11:59:31 -07:00
test-immediate.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-improper-order.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-improper-unwind.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-late-hook-enable.js test: remove unnecessary noop function args to mustCall() 2022-10-18 12:13:41 +00:00
test-net-get-connections.js
test-nexttick-default-trigger.js test: use arrow functions in async-hooks tests 2019-12-02 20:03:17 +05:30
test-no-assert-when-disabled.js
test-pipeconnectwrap.js test: work around ENOTEMPTY when cleaning tmp dir 2019-12-12 14:37:05 -05:00
test-pipewrap.js
test-promise.chain-promise-before-init-hooks.js
test-promise.js
test-promise.promise-before-init-hooks.js
test-querywrap.js
test-queue-microtask.js test: use arrow functions in async-hooks tests 2019-12-02 20:03:17 +05:30
test-shutdownwrap.js
test-signalwrap.js test: permit test-signalwrap to work without test runner 2019-09-08 10:10:38 -07:00
test-statwatcher.js test: unflake async-hooks/test-statwatcher 2020-03-29 22:33:33 +02:00
test-tcpwrap.js test: defer invocation checks 2022-11-05 19:53:24 +01:00
test-timers.setInterval.js
test-timers.setTimeout.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-tlswrap.js test: move test_[key|ca|cert] to fixtures/keys/ 2019-06-10 09:56:55 -07:00
test-ttywrap.readstream.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-udpsendwrap.js dgram: use uv_udp_try_send() 2019-10-05 17:48:10 -07:00
test-udpwrap.js
test-unhandled-exception-valid-ids.js process: ignore asyncId 0 in exception handler 2022-01-18 22:05:12 +01:00
test-unhandled-rejection-context.js async_hooks: set unhandledRejection async context 2021-02-13 16:49:21 +02:00
test-writewrap.js
test-zlib.zlib-binding.deflate.js
testcfg.py
verify-graph.js test: relax check in verify-graph 2019-05-19 23:09:42 +02:00