node/test/async-hooks
Darshan Sen 5630170d3e
test: account for truthy signal in flaky async_hooks tests
When the spawned child process gets closed with a signal, the exit code
is not set and that is why the exit code assertion was failing. This
change adjusts the test to check the signal and if it is truthy, it
doesn't assert the exit code and instead logs the signal and continues
the rest of the assertions.

Refs: https://github.com/nodejs/node/issues/58463#issuecomment-2911460454
Refs: https://github.com/nodejs/node/issues/58199
Refs: https://github.com/nodejs/node/issues/58463
Signed-off-by: Darshan Sen <raisinten@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/58478
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2026-03-04 10:41:48 +01:00
..
async-hooks.status test: remove async-hooks/test-writewrap flaky designation 2025-03-06 13:38:03 +01:00
coverage.md doc: format markdown files in test directory 2021-10-04 20:19:11 -07:00
hook-checks.js tools: fix jsdoc lint 2023-05-12 11:56:59 +02:00
init-hooks.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-await.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-exec-resource-http-32060.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-exec-resource-http-agent.js test: add http agent to executionAsyncResource 2024-06-17 16:25:21 +02:00
test-async-exec-resource-http.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-exec-resource-match.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-local-storage-args.js
test-async-local-storage-async-await.js
test-async-local-storage-async-functions.js
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-async-local-storage-enter-with.js
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 test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test-async-local-storage-http-agent.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-local-storage-http.js
test-async-local-storage-misc-stores.js
test-async-local-storage-nested.js
test-async-local-storage-no-mix-contexts.js
test-async-local-storage-promises.js
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: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-local-storage-tlssocket.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-async-wrap-providers.js async_hooks: expose async_wrap providers 2021-11-12 21:48:34 +00:00
test-callback-error.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-crypto-pbkdf2.js
test-crypto-randomBytes.js
test-destroy-not-blocked.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-disable-in-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-embedder.api.async-resource-no-type.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-embedder.api.async-resource.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-embedder.api.async-resource.runInAsyncScope.js
test-emit-after-on-destroyed.js test: account for truthy signal in flaky async_hooks tests 2026-03-04 10:41:48 +01:00
test-emit-before-after.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-emit-before-on-destroyed.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-emit-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-enable-disable.js
test-enable-in-init.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-filehandle-no-reuse.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-fseventwrap.js
test-fsreqcallback-access.js
test-fsreqcallback-readFile.js
test-getaddrinforeqwrap.js
test-getnameinforeqwrap.js
test-graph.fsreq-readFile.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.http.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.intervals.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.pipe.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.pipeconnect.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.shutdown.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.signal.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.statwatcher.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.tcp.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.timeouts.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-graph.tls-write-12.js
test-graph.tls-write.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-http-agent-handle-reuse-parallel.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-http-agent-handle-reuse-serial.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-httpparser-reuse.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-httpparser.request.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-httpparser.response.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-immediate.js
test-improper-order.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-improper-unwind.js test: account for truthy signal in flaky async_hooks tests 2026-03-04 10:41:48 +01:00
test-late-hook-enable.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-net-get-connections.js
test-nexttick-default-trigger.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-no-assert-when-disabled.js
test-pipeconnectwrap.js
test-pipewrap.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
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: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-shutdownwrap.js
test-signalwrap.js
test-statwatcher.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-tcpwrap.js test: defer invocation checks 2022-11-05 19:53:24 +01:00
test-timers.setInterval.js
test-timers.setTimeout.js
test-tlswrap.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-ttywrap.readstream.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-udpsendwrap.js
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 test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
test-writewrap.js
test-zlib.zlib-binding.deflate.js test: add trailing commas in async-hooks tests (#45549) 2022-11-21 18:43:47 +01:00
testcfg.py
verify-graph.js test: fix typo in test 2024-10-02 07:57:22 +02:00