node/test/sequential
Luigi Pinca 18e00a577d test: deflake test-http-regr-gh-2928
Hard code the value of the host parameter to `common.localhostIPv4` in
`server.listen()` and `net.connect()`. This

1. ensures that the client `socket._handle` is not reinitialized during
   connection due to the family autodetection algorithm, preventing
   `parser.consume()` from being called with an invalid `socket._handle`
   parameter.
2. works around an issue in the FreeBSD 12 machine where the stress test
   is run where some sockets get stuck after connection.

PR-URL: https://github.com/nodejs/node/pull/49574
Closes: https://github.com/nodejs/node/pull/49565
Fixes: https://github.com/nodejs/node/issues/49564
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-09-18 20:16:24 +02:00
..
sequential.status test: mark test-http-regr-gh-2928 as flaky 2023-09-11 16:39:49 +00:00
test-async-wrap-getasyncid.js tls: fix bugs of double TLS 2023-08-04 10:14:18 -04: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
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-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-cpu-prof-exit.js
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-cpu-prof-name.js test: use tmpdir.resolve() 2023-08-21 16:41:53 +00:00
test-cpu-prof-worker-argv.js
test-crypto-timing-safe-equal.js doc,test: clarify timingSafeEqual semantics 2022-06-21 12:43:09 +01:00
test-debug-prompt.js
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
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
test-dgram-pingpong.js
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-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-08-21 16:41:53 +00:00
test-http2-timeout-large-write.js
test-http-econnrefused.js net: enable autoSelectFamily by default 2023-04-05 08:31:56 -07:00
test-http-keep-alive-large-write.js
test-http-keepalive-maxsockets.js
test-http-max-sockets.js
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-http-server-keep-alive-timeout-slow-server.js
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-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-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-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
test-perf-hooks.js test: make test-perf-hooks more robust and work with workers 2023-08-18 11:49:56 +00: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-resolution-inspect-brk.js
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-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-timers-set-interval-excludes-callback-duration.js
test-tls-connect.js
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