path: use the correct name in validateString
#53669
Merged
Annotations
2 errors
test/parallel/test-dns.js#L428
--- stderr ---
(node:144434) [DEP0118] DeprecationWarning: The provided hostname "" is not a valid hostname, and is supported in the dns module solely for compatibility.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:assert:126
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected ... Lines skipped
[
{
address: '1.2.3.4',
+ ttl: 3333333332,
- ttl: 3333333333,
type: 'A'
},
{
address: '::42',
+ ttl: 3333333332,
- ttl: 3333333333,
type: 'AAAA'
...
type: 'SOA'
}
]
at validateResults (/home/runner/work/node/node/test/parallel/test-dns.js:428:14)
at QueryReqWrap.<anonymous> (/home/runner/work/node/node/test/parallel/test-dns.js:456:9)
at QueryReqWrap.<anonymous> (/home/runner/work/node/node/test/common/index.js:452:17)
at QueryReqWrap.callback (/home/runner/work/node/node/test/common/index.js:487:15)
at QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/callback_resolver:47:10) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: [
{ address: '1.2.3.4', ttl: 3333333332, type: 'A' },
{ address: '::42', ttl: 3333333332, type: 'AAAA' },
{ exchange: 'foobar.com', priority: 42, type: 'MX' },
{ value: 'foobar.org', type: 'NS' },
{ value: 'baz.org', type: 'PTR' },
{
nsname: 'ns1.example.com',
hostmaster: 'admin.example.com',
serial: 3210987654,
refresh: 900,
retry: 900,
expire: 1800,
minttl: 3333333333,
type: 'SOA'
}
],
expected: [
{ type: 'A', address: '1.2.3.4', ttl: 3333333333 },
{ type: 'AAAA', address: '::42', ttl: 3333333333 },
{ type: 'MX', priority: 42, exchange: 'foobar.com' },
{ type: 'NS', value: 'foobar.org' },
{ type: 'PTR', value: 'baz.org' },
{
type: 'SOA',
nsname: 'ns1.example.com',
hostmaster: 'admin.example.com',
serial: 3210987654,
refresh: 900,
retry: 900,
expire: 1800,
minttl: 3333333333
}
],
operator: 'deepStrictEqual'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-dns.js
|
|
This job failed
Loading