node/test/sequential
Trivikram Kamat cb8eebf218
watch: cancel pending restart on shutdown
Cancel any pending FilesWatcher debounce timer when watch mode clears
its watchers. This prevents a queued change event from restarting the
watched process after shutdown has started.

Keep the watched child exit handling attached for the lifetime of the
child so overlapping restart and shutdown paths do not remove each
other's exit listeners.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: https://github.com/nodejs/node/pull/63383
Reviewed-By: Tim Perry <pimterry@gmail.com>
2026-06-04 23:20:48 +00:00
..
sequential.status test: move sea tests into test/sea 2025-10-17 12:51:59 +02:00
test-async-wrap-getasyncid.js src,lib: implement experimental DTLS API 2026-05-21 14:13:04 -07:00
test-buffer-creation-regression.js
test-child-process-emfile.js test: add escapePOSIXShell util 2024-09-29 20:44:52 +00:00
test-child-process-execsync.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-child-process-exit.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-child-process-pass-fd.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-cli-syntax-bad.js test: add escapePOSIXShell util 2024-09-29 20:44:52 +00:00
test-cli-syntax-file-not-found.js test: add escapePOSIXShell util 2024-09-29 20:44:52 +00:00
test-cli-syntax-good.js test: add escapePOSIXShell util 2024-09-29 20:44:52 +00:00
test-cli-syntax-require.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cluster-inspect-brk.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cluster-net-listen-ipv6only-none.js
test-cluster-net-listen-ipv6only-rr.js
test-cluster-port-reuse-between-workers.js cluster: fix port reuse between cluster 2026-01-14 10:39:15 +00:00
test-cluster-send-handle-large-payload.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-cpu-prof-default.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-dir-absolute.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-dir-and-name.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-dir-relative.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-dir-worker.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-drained.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-exit.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-invalid-options.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-kill.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-name.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-cpu-prof-worker-argv.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-crypto-timing-safe-equal-fast.js crypto: fix argument validation in crypto.timingSafeEqual fast path 2025-11-03 22:18:51 +00:00
test-crypto-timing-safe-equal.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-debug-prompt.js
test-debugger-custom-port.js test: update startCLI to set --port=0 by default 2025-07-20 17:37:28 +00:00
test-debugger-debug-brk.js
test-debugger-invalid-args.js test: update startCLI to set --port=0 by default 2025-07-20 17:37:28 +00:00
test-debugger-launch.mjs test: forbid use of named imports for fixtures 2026-01-01 23:48:26 +00:00
test-debugger-pid.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-deprecation-flags.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-dgram-bind-shared-ports.js
test-dgram-implicit-bind-failure.js
test-dgram-pingpong.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-diagnostic-dir-cpu-prof.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-diagnostic-dir-heap-prof.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-dtls-interop-openssl-client.mjs src,lib: add dtls interop tests 2026-05-21 14:13:07 -07:00
test-dtls-interop-openssl-server.mjs src,lib: add dtls interop tests 2026-05-21 14:13:07 -07:00
test-error-serdes.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-fs-opendir-recursive.js test: ensure assertions are reached on more tests 2025-11-11 09:56:18 +00:00
test-fs-readdir-recursive.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-fs-stat-sync-overflow.js
test-fs-watch.js test: rely less on duplicative common test harness utilities 2025-01-25 07:23:09 +00:00
test-gc-http-client-onerror.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-gc-http-client-timeout.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-gc-http-client.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-get-heapsnapshot-options.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-heapdump-flag-custom-dir.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-heapdump-flag.js
test-heapdump.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http-econnrefused.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http-keep-alive-large-write.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http-keepalive-maxsockets.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http-regr-gh-2928.js
test-http-server-keep-alive-timeout-slow-client-headers.js
test-http-server-keep-alive-timeout-slow-server.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http-server-request-timeouts-mixed.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http2-large-file.js
test-http2-max-session-memory.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http2-ping-flood.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-http2-settings-flood.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-http2-timeout-large-write-file.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-http2-timeout-large-write.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-https-connect-localport.js
test-https-server-keep-alive-timeout.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-init.js test: rely less on duplicative common test harness utilities 2025-01-25 07:23:09 +00:00
test-inspector-network-resource.js test: make test-inspector-network-resource sequential 2025-07-28 13:29:23 +00:00
test-inspector-open-dispose.mjs test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-inspector-port-cluster.js test: enforce better never-settling-promise detection 2025-12-10 23:55:36 +00:00
test-module-loading.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-net-better-error-messages-port.js
test-net-connect-econnrefused.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-net-connect-handle-econnrefused.js
test-net-connect-local-error.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-net-GH-5504.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-net-listen-shared-ports.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-net-localport.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-net-reconnect-error.js
test-net-response-size.js
test-net-server-address.js
test-net-server-bind.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-net-server-listen-ipv6-link-local.js
test-next-tick-error-spin.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-perf-hooks.js test: fix incorrect calculation in test-perf-hooks.js 2025-10-18 12:21:44 +00:00
test-performance-eventloopdelay.js test: relax min assertion in test-performance-eventloopdelay 2026-05-17 21:34:51 +00:00
test-pipe.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-process-title.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-process-warnings.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-repl-timeout-throw.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-require-cache-without-stat.js test: forbid use of named imports for fixtures 2026-01-01 23:48:26 +00:00
test-resolution-inspect-brk.js
test-runner-run-inspect.mjs tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-stream2-fs.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-stream2-stderr-sync.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-timers-block-eventloop.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-timers-set-interval-excludes-callback-duration.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-tls-connect.js test: update tls/crypto behaviour expectations when using BoringSSL 2026-05-08 19:27:18 +00:00
test-tls-lookup.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-tls-psk-client.js test: update tls/crypto behaviour expectations when using BoringSSL 2026-05-08 19:27:18 +00:00
test-tls-session-timeout.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-util-debug.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-vm-break-on-sigint.js
test-vm-timeout-escape-promise-module-2.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-vm-timeout-rethrow.js
test-watch-mode-inspect.mjs test: fix flaky test-watch-mode-inspect timeout 2026-05-18 17:45:55 +00:00
test-watch-mode-restart-esm-loading-error.mjs test: reduce watch mode restart flakiness 2026-05-24 23:57:31 +00:00
test-watch-mode-watch-flags.mjs tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-watch-mode-worker.mjs test: deflake watch mode worker test 2026-05-19 17:49:31 +00:00
test-watch-mode.mjs watch: cancel pending restart on shutdown 2026-06-04 23:20:48 +00:00
test-without-async-context-frame.mjs test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-worker-eventlooputil.js test: ensure assertions are reachable in test/sequential 2025-10-29 16:29:39 +01:00
test-worker-fshandles-error-on-termination.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-worker-fshandles-open-close-on-termination.js
test-worker-heapsnapshot-options.js
test-worker-prof.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-write-heapsnapshot-options.js tools: enforce trailing commas in test/sequential 2025-12-03 14:17:37 +01:00
test-zlib-crc32-fast-api.js zlib: implement fast path for crc32 2025-09-14 00:39:58 +00:00
testcfg.py