node/test/sequential
Joyee Cheung 4d0aeed4a6 test: deflake test-perf-hooks.js
Previously when checking the initial timing we did a lot of checks
after accessing and copying timing.duration and before we check
that timing.duration is roughly the same as performance.now(),
which can lead to flakes if the overhead of the checking is
big enough. Update the test to check timing.duration against
performance.now() as soon as possible when it's copied instead
of computed.
:#

PR-URL: https://github.com/nodejs/node/pull/49892
Refs: https://github.com/nodejs/reliability/issues/676
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Richard Lau <rlau@redhat.com>
2023-09-29 18:14:01 +02:00
..
sequential.status Revert "test: mark test-http-regr-gh-2928 as flaky" 2023-09-20 18:31:47 +00:00
test-async-wrap-getasyncid.js test: use fs.constants for fs.access constants 2023-09-20 07:14:37 +00:00
test-buffer-creation-regression.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-child-process-emfile.js child_process: setup stdio on error when possible 2019-05-20 09:33:10 -04:00
test-child-process-execsync.js test: raise sleep times in child process tests 2022-08-25 07:56:40 +00:00
test-child-process-exit.js test: adjust comments for upcoming lint rule 2020-10-07 04:36:02 -07:00
test-child-process-pass-fd.js test: only skip slow tests on Raspberry Pi devices 2022-04-12 14:19:36 -04:00
test-cli-syntax-bad.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-cli-syntax-file-not-found.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-cli-syntax-good.js lib: fix checking syntax of esm module 2021-12-19 23:33:34 +00:00
test-cli-syntax-require.js test: show more info on failure in test-cli-syntax-require.js 2023-09-12 17:02:51 +00:00
test-cluster-inspect-brk.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-cluster-net-listen-ipv6only-none.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-cluster-net-listen-ipv6only-rr.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-cluster-send-handle-large-payload.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-cpu-prof-default.js test: move --cpu-prof tests to sequential 2019-06-16 23:42:58 +08:00
test-cpu-prof-dir-absolute.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-and-name.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-relative.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-dir-worker.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-drained.js test: move --cpu-prof tests to sequential 2019-06-16 23:42:58 +08:00
test-cpu-prof-exit.js test: move --cpu-prof tests to sequential 2019-06-16 23:42:58 +08:00
test-cpu-prof-invalid-options.js src: fix c++ exception on bad command line arg 2023-01-22 10:39:16 +00:00
test-cpu-prof-kill.js test: move --cpu-prof tests to sequential 2019-06-16 23:42:58 +08:00
test-cpu-prof-name.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-worker-argv.js test: move --cpu-prof tests to sequential 2019-06-16 23:42:58 +08:00
test-crypto-timing-safe-equal.js doc,test: clarify timingSafeEqual semantics 2022-06-21 12:43:09 +01:00
test-debug-prompt.js test: fix flaky test-debug-prompt 2018-07-15 22:50:16 -07:00
test-debugger-custom-port.js test: modify test-debugger-custom-port.js to use async-await 2022-09-27 19:35:41 +00:00
test-debugger-debug-brk.js process: move DEP0062 (node --debug) to end-of-life 2019-02-02 05:45:05 +08:00
test-debugger-invalid-args.js lib,src: update exit codes as per todos 2023-02-26 17:03:06 +00:00
test-debugger-launch.mjs test: use --port=0 in debugger tests that do not have to work on 9229 2023-04-05 00:49:44 +02:00
test-debugger-pid.js test: convert test-debugger-pid to async/await 2022-11-01 05:45:47 +00:00
test-deprecation-flags.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-dgram-bind-shared-ports.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-dgram-implicit-bind-failure.js dgram: don't hide implicit bind errors 2020-02-27 21:01:32 -05:00
test-dgram-pingpong.js test: fix test-dgram-pingpong assertion arg order 2018-10-15 12:00:00 +02:00
test-diagnostic-dir-cpu-prof.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-diagnostic-dir-heap-prof.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-fs-opendir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-11 19:08:08 +00:00
test-fs-readdir-recursive.js fs: fix readdir and opendir recursive with unknown file types 2023-09-11 19:08:08 +00:00
test-fs-stat-sync-overflow.js test: use spawn and spawnPromisified instead of exec 2023-08-05 07:29:53 +00:00
test-fs-watch.js fs: add recursive watch to linux 2022-10-31 23:15:45 +00:00
test-gc-http-client-onerror.js test: use os.availableParallelism() 2023-01-11 20:07:56 +00:00
test-gc-http-client-timeout.js test: refactor test-gc-http-client-timeout 2023-06-06 15:42:42 +00:00
test-gc-http-client.js test: use os.availableParallelism() 2023-01-11 20:07:56 +00:00
test-get-heapsnapshot-options.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
test-heapdump-flag-custom-dir.js process: add custom dir support for heapsnapshot-signal 2023-09-05 15:13:01 -07:00
test-heapdump-flag.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-heapdump.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
test-http2-large-file.js test: optimize test-http2-large-file 2019-03-20 09:50:52 -07:00
test-http2-max-session-memory.js test: refactor common.expectsError 2019-12-31 15:54:20 +01:00
test-http2-ping-flood.js test: fix flaky test-http2-ping-flood 2018-03-19 10:17:58 -07:00
test-http2-settings-flood.js test: fix flaky test-http2-settings-flood 2018-03-16 10:26:55 -07:00
test-http2-timeout-large-write-file.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-http2-timeout-large-write.js test: simplify assertion in http2 tests 2018-09-16 20:37:30 -07:00
test-http-econnrefused.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-http-keep-alive-large-write.js net,src: refactor writeQueueSize tracking 2017-12-18 09:58:02 -05:00
test-http-keepalive-maxsockets.js benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
test-http-max-sockets.js test: rename test-regress-GH-877.js 2018-03-08 10:37:43 -06:00
test-http-regr-gh-2928.js test: deflake test-http-regr-gh-2928 2023-09-18 20:16:24 +02:00
test-http-server-keep-alive-timeout-slow-client-headers.js test: move timing-dependent tests to sequential 2017-07-22 07:53:27 +03:00
test-http-server-keep-alive-timeout-slow-server.js test: move timing-dependent tests to sequential 2017-07-22 07:53:27 +03:00
test-https-connect-localport.js dns: default to verbatim=true in dns.lookup() 2021-09-12 21:05:35 +02:00
test-https-server-keep-alive-timeout.js test: scale keepalive timeouts for slow machines 2019-12-08 21:05:59 -08:00
test-init.js test: add common.mustSucceed 2020-10-17 00:48:26 +02:00
test-inspector-open-dispose.mjs test: stabilize the inspector-open-dispose test 2023-08-11 13:05:01 +00:00
test-inspector-port-cluster.js test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test-module-loading.js module: harmonize error code between ESM and CJS 2023-07-04 09:52:56 +00:00
test-net-better-error-messages-port.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-connect-econnrefused.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-connect-handle-econnrefused.js net: remove redundant connecting assignment 2022-07-09 17:10:16 +01:00
test-net-connect-local-error.js dns: default to verbatim=true in dns.lookup() 2021-09-12 21:05:35 +02:00
test-net-GH-5504.js test: clean up inappropriate language 2017-11-22 16:48:04 +02:00
test-net-listen-shared-ports.js lib,src: update cluster to use Parent 2021-01-05 15:41:45 -05:00
test-net-localport.js test: move common.PORT tests to sequential 2017-09-10 23:56:30 -03:00
test-net-reconnect-error.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-net-response-size.js test: enable no-empty ESLint rule 2022-02-05 12:58:32 +00:00
test-net-server-address.js dns: accept 'IPv4' and 'IPv6' for family 2022-06-15 18:02:01 -04:00
test-net-server-bind.js dns: accept 'IPv4' and 'IPv6' for family 2022-06-15 18:02:01 -04:00
test-next-tick-error-spin.js doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
test-perf-hooks.js test: deflake test-perf-hooks.js 2023-09-29 18:14:01 +02:00
test-performance-eventloopdelay.js lib: refactor to use min/max of validateNumber 2023-02-03 21:12:05 +00:00
test-pipe.js test: adjust comments for upcoming lint rule 2020-10-07 04:36:02 -07:00
test-process-title.js test: move test-process-title to sequential 2020-04-30 18:00:38 +03:00
test-process-warnings.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-repl-timeout-throw.js test: change var to let 2020-09-05 12:53:45 +02:00
test-require-cache-without-stat.js test: improve to use template string 2018-01-17 08:50:02 +08:00
test-resolution-inspect-brk.js module: ignore resolution failures for inspect-brk 2019-12-04 23:30:25 -05:00
test-runner-run-inspect.mjs test_runner: support using --inspect with --test 2022-09-10 17:01:42 +00:00
test-single-executable-application-disable-experimental-sea-warning.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-single-executable-application-empty.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-single-executable-application-snapshot-and-code-cache.js test: use spawnSyncAndExitWithoutError in sea tests 2023-09-11 16:39:37 +00:00
test-single-executable-application-snapshot.js test: use spawnSyncAndExitWithoutError in sea tests 2023-09-11 16:39:37 +00:00
test-single-executable-application-use-code-cache.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-single-executable-application.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-stream2-fs.js test: use ES6 classes instead of util.inherits 2017-11-12 10:29:45 -08:00
test-stream2-stderr-sync.js test,doc,lib: adjust object literal newlines for lint rule 2021-01-26 16:49:18 -08:00
test-timers-block-eventloop.js test: remove common.busyLoop() 2019-12-06 22:03:00 -05:00
test-timers-set-interval-excludes-callback-duration.js test: remove common.busyLoop() 2019-12-06 22:03:00 -05:00
test-tls-connect.js test: move test_[key|ca|cert] to fixtures/keys/ 2019-06-10 09:56:55 -07:00
test-tls-lookup.js test: remove unnecessary noop function args to mustCall() 2022-10-18 12:13:41 +00:00
test-tls-psk-client.js test: fallback to IPv4 if IPv6 is unavailable 2023-03-11 06:26:25 +00:00
test-tls-securepair-client.js test: fallback to IPv4 if IPv6 is unavailable 2023-03-11 06:26:25 +00:00
test-tls-session-timeout.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-util-debug.js util: add debug and debuglog.enabled 2020-08-10 12:09:43 -05:00
test-vm-break-on-sigint.js test: move test-vm-break-on-sigint to sequential 2022-08-07 12:26:59 +00:00
test-vm-timeout-escape-promise-module-2.js test: fix flaky test-vm-timeout-escape-promise-module-2 2021-03-22 09:47:05 -07:00
test-vm-timeout-rethrow.js test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
test-watch-mode-inspect.mjs test: fix flaky test-watch-mode-inspect 2023-04-04 16:53:32 -07:00
test-watch-mode.mjs test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-worker-eventlooputil.js perf_hooks: fix webperf idlharness 2022-10-04 00:55:58 +08:00
test-worker-fshandles-error-on-termination.js test: move tests with many workers to sequential 2022-08-07 12:44:33 +00:00
test-worker-fshandles-open-close-on-termination.js test: move tests with many workers to sequential 2022-08-07 12:44:33 +00:00
test-worker-heapsnapshot-options.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
test-worker-prof.js test: make test-worker-prof more robust 2023-09-04 21:53:59 +00:00
test-write-heapsnapshot-options.js lib: add options to the heap snapshot APIs 2022-11-08 16:19:54 +01:00
testcfg.py