GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix dns test case failures after c-ares update to 1.21.0+ · nodejs/node@95d7a75

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-dns-resolveany-bad-ancount.js
    • test-dns-resolveany.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-dns-resolveany-bad-ancount.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dns-resolveany-bad-ancount.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ server.bind(0, common.mustCall(async () => {
3030
dnsPromises.resolveAny('example.org')
3131
.then(common.mustNotCall())
3232
.catch(common.expectsError({
33-
code: 'EBADRESP',
33+
// May return EBADRESP or ETIMEOUT
34+
code: /^(?:EBADRESP|ETIMEOUT)$/,
3435
syscall: 'queryAny',
3536
hostname: 'example.org'
3637
}));
3738

3839
dns.resolveAny('example.org', common.mustCall((err) => {
39-
assert.strictEqual(err.code, 'EBADRESP');
40+
assert.notStrictEqual(err.code, 'SUCCESS');
4041
assert.strictEqual(err.syscall, 'queryAny');
4142
assert.strictEqual(err.hostname, 'example.org');
4243
const descriptor = Object.getOwnPropertyDescriptor(err, 'message');
Collapse file

‎test/parallel/test-dns-resolveany.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-dns-resolveany.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const answers = [
1111
{ type: 'AAAA', address: '::42', ttl: 123 },
1212
{ type: 'MX', priority: 42, exchange: 'foobar.com', ttl: 124 },
1313
{ type: 'NS', value: 'foobar.org', ttl: 457 },
14-
{ type: 'TXT', entries: [ 'v=spf1 ~all', 'xyz\0foo' ] },
14+
{ type: 'TXT', entries: [ 'v=spf1 ~all xyz\0foo' ] },
1515
{ type: 'PTR', value: 'baz.org', ttl: 987 },
1616
{
1717
type: 'SOA',

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.