node/test/sequential
Matteo Collina 368b221be3
test: fix flaky test-performance-eventloopdelay
The test was flaky because the histogram sampling might not have
completed before the assertions ran. By using setImmediate before
disabling the histogram and checking values, we give the event loop
a chance to record final samples on slower systems.

Also added an explicit check for histogram.count > 0 to provide a
clearer error message if no samples are recorded.

Refs: https://github.com/nodejs/reliability/issues/1450
PR-URL: https://github.com/nodejs/node/pull/61629
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-03-04 10:41:48 +01:00
..
sequential.status test: mark sea tests flaky on macOS x64 2025-11-19 18:17:49 +01:00
test-async-wrap-getasyncid.js async_hooks,inspector: implement inspector api without async_wrap 2024-03-25 19:25:04 +00:00
test-buffer-creation-regression.js
test-child-process-emfile.js
test-child-process-execsync.js
test-child-process-exit.js
test-child-process-pass-fd.js
test-cli-syntax-bad.js
test-cli-syntax-file-not-found.js
test-cli-syntax-good.js
test-cli-syntax-require.js test: show more info on failure in test-cli-syntax-require.js 2023-09-27 22:32:47 -04:00
test-cluster-inspect-brk.js
test-cluster-net-listen-ipv6only-none.js
test-cluster-net-listen-ipv6only-rr.js
test-cluster-send-handle-large-payload.js src,test: further cleanup references to osx 2024-08-19 10:32:38 +02:00
test-cpu-prof-default.js
test-cpu-prof-dir-absolute.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-cpu-prof-dir-and-name.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-cpu-prof-dir-relative.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-cpu-prof-dir-worker.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-cpu-prof-drained.js
test-cpu-prof-exit.js
test-cpu-prof-invalid-options.js
test-cpu-prof-kill.js
test-cpu-prof-name.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-cpu-prof-worker-argv.js
test-crypto-timing-safe-equal.js
test-debug-prompt.js
test-debugger-custom-port.js
test-debugger-debug-brk.js
test-debugger-invalid-args.js
test-debugger-launch.mjs
test-debugger-pid.js
test-deprecation-flags.js
test-dgram-bind-shared-ports.js
test-dgram-implicit-bind-failure.js
test-dgram-pingpong.js
test-diagnostic-dir-cpu-prof.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-diagnostic-dir-heap-prof.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-fs-opendir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-27 22:32:46 -04:00
test-fs-readdir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-27 22:32:46 -04:00
test-fs-stat-sync-overflow.js test: use spawn and spawnPromisified instead of exec 2023-08-17 08:35:58 -03:00
test-fs-watch.js test: refactor fs-watch tests due to macOS issue 2024-10-02 07:57:54 +02:00
test-gc-http-client-onerror.js test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test-gc-http-client-timeout.js test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test-gc-http-client.js test: merge ongc and gcutil into gc.js 2024-10-02 07:57:44 +02:00
test-get-heapsnapshot-options.js
test-heapdump-flag-custom-dir.js process: add custom dir support for heapsnapshot-signal 2023-09-27 22:20:15 -04:00
test-heapdump-flag.js
test-heapdump.js v8: fix missing callback in heap utils destroy 2025-08-27 19:20:40 +02:00
test-http-econnrefused.js
test-http-keep-alive-large-write.js
test-http-keepalive-maxsockets.js
test-http-regr-gh-2928.js test: reduce the number of requests and parsers 2023-11-11 20:31:46 +01:00
test-http-server-keep-alive-timeout-slow-client-headers.js
test-http-server-keep-alive-timeout-slow-server.js
test-http-server-request-timeouts-mixed.js test: move test-http-server-request-timeouts-mixed to sequential 2024-06-17 16:25:21 +02:00
test-http2-large-file.js
test-http2-max-session-memory.js
test-http2-ping-flood.js
test-http2-settings-flood.js
test-http2-timeout-large-write-file.js test: use tmpdir.resolve() 2023-09-10 18:07:39 +00:00
test-http2-timeout-large-write.js
test-https-connect-localport.js
test-https-server-keep-alive-timeout.js
test-init.js
test-inspector-open-dispose.mjs test: stabilize the inspector-open-dispose test 2023-08-17 08:35:59 -03:00
test-inspector-port-cluster.js
test-module-loading.js
test-net-better-error-messages-port.js
test-net-connect-econnrefused.js
test-net-connect-handle-econnrefused.js
test-net-connect-local-error.js
test-net-GH-5504.js
test-net-listen-shared-ports.js
test-net-localport.js
test-net-reconnect-error.js
test-net-response-size.js
test-net-server-address.js
test-net-server-bind.js
test-next-tick-error-spin.js
test-perf-hooks.js test: deflake test-perf-hooks.js 2023-11-11 19:35:24 +01:00
test-performance-eventloopdelay.js test: fix flaky test-performance-eventloopdelay 2026-03-04 10:41:48 +01:00
test-pipe.js
test-process-title.js
test-process-warnings.js
test-repl-timeout-throw.js
test-require-cache-without-stat.js
test-resolution-inspect-brk.js
test-runner-run-inspect.mjs
test-single-executable-application-assets-raw.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-assets.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-disable-experimental-sea-warning.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-empty.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-snapshot-and-code-cache.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-snapshot-worker.js sea: only assert snapshot main function for main threads 2025-01-24 22:18:52 +01:00
test-single-executable-application-snapshot.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application-use-code-cache.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-single-executable-application.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-stream2-fs.js
test-stream2-stderr-sync.js
test-timers-block-eventloop.js
test-timers-set-interval-excludes-callback-duration.js
test-tls-connect.js
test-tls-lookup.js
test-tls-psk-client.js
test-tls-securepair-client.js
test-tls-session-timeout.js tls: fix negative sessionTimeout handling 2024-07-19 15:26:49 +02:00
test-util-debug.js
test-vm-break-on-sigint.js
test-vm-timeout-escape-promise-module-2.js test: ensure never settling promises are detected 2023-12-11 11:11:46 +00:00
test-vm-timeout-rethrow.js
test-watch-mode-inspect.mjs
test-watch-mode.mjs src,test: further cleanup references to osx 2024-08-19 10:32:38 +02:00
test-worker-eventlooputil.js
test-worker-fshandles-error-on-termination.js
test-worker-fshandles-open-close-on-termination.js
test-worker-heapsnapshot-options.js
test-worker-prof.js test: add spawnSyncAndAssert util 2024-05-03 08:30:16 +02:00
test-write-heapsnapshot-options.js
testcfg.py