1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/unit_node
Yoshiya Hinosawa d59599fc18
fix(ext/node): fix dns.lookup result ordering (#26264)
partially unblocks #25470

This PR aligns the resolution of `localhost` hostname to Node.js
behavior.

In Node.js `dns.lookup("localhost", (_, addr) => console.log(addr))`
prints ipv6 address `::1`, but it prints ipv4 address `127.0.0.1` in
Deno. That difference causes some errors in the work of enabling
`createConnection` option in `http.request` (#25470). This PR fixes the
issue by aligning `dns.lookup` behavior to Node.js.

This PR also changes the following behaviors (resolving TODOs):
- `http.createServer` now listens on ipv6 address `[::]` by default on
linux/mac
- `net.createServer` now listens on ipv6 address `[::]` by default on
linux/mac

These changes are also alignments to Node.js behaviors.
2024-10-16 20:58:44 +09:00
..
_fs feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
crypto fix(ext/node): timingSafeEqual account for AB byteOffset (#26292) 2024-10-16 14:27:28 +05:30
internal chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
testdata fix(ext/crypto): support md4 digest algorithm (#25656) 2024-09-16 11:04:40 +00:00
_test_utils.ts test: remove usage of --unstable flag (#25549) 2024-09-10 11:28:59 +00:00
assert_test.ts fix(node/assert): throws not checking error instance (#24466) 2024-07-08 21:28:39 +02:00
assertion_error_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
async_hooks_test.ts fix: add test ensuring als works across dynamic import (#25593) 2024-09-12 05:42:26 +00:00
buffer_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
child_process_test.ts feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
cluster_test.ts fix(node/cluster): improve stubs to make log4js work (#25146) 2024-08-26 11:19:58 +02:00
console_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
dgram_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
domain_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
events_test.ts feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
fs_test.ts fix(ext/node): internal buffer length in readSync (#26064) 2024-10-08 10:41:32 +00:00
http2_test.ts BREAKING(ext/net): improved error code accuracy (#25383) 2024-09-27 14:07:20 +00:00
http_test.ts fix(ext/node): fix dns.lookup result ordering (#26264) 2024-10-16 20:58:44 +09:00
inspector_test.ts fix(node/inspector): Session constructor should not throw (#25041) 2024-08-14 13:34:24 +00:00
module_test.ts feat(check): turn on useUnknownInCatchVariables (#25465) 2024-09-05 15:22:31 +02:00
net_test.ts feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
os_test.ts feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
path_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
perf_hooks_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
process_test.ts fix(ext/node): allow writing to tty columns (#26201) 2024-10-14 14:00:02 +05:30
punycode_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
querystring_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
readline_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
repl_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
stream_test.ts feat: TypeScript 5.6 and npm:@types/node@22 (#25614) 2024-09-14 11:58:47 +01:00
string_decoder_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
timers_test.ts fix(node/timers/promises): add scheduler APIs (#24802) 2024-07-31 12:00:01 +02:00
tls_test.ts fix(ext/node): fix dns.lookup result ordering (#26264) 2024-10-16 20:58:44 +09:00
tty_test.ts BREAKING(fs): remove Deno.FsFile.prototype.rid (#25499) 2024-09-11 07:19:34 +10:00
util_test.ts fix(node/util): export styleText from node:util (#26194) 2024-10-12 19:36:23 +00:00
v8_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
vm_test.ts feat: vm rewrite (#24596) 2024-08-06 12:52:53 +00:00
wasi_test.ts fix(ext/node): register node:wasi built-in (#25134) 2024-08-22 09:03:52 +05:30
worker_threads_test.ts fix(node): fix worker_threads issues blocking Angular support (#26024) 2024-10-04 09:26:32 -07:00
zlib_test.ts fix(ext/node): createBrotliCompress params (#24984) 2024-08-11 14:26:30 +05:30