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: expect error for test_lookup_ipv6_hint on FreeBSD · nodejs/node@779e14f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/internet
    • test-dns.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/internet/test-dns.js‎

Copy file name to clipboardExpand all lines: test/internet/test-dns.js
+13-1Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,19 @@ TEST(function test_lookup_ipv6_hint(done) {
394394
family: 6,
395395
hints: dns.V4MAPPED
396396
}, function(err, ip, family) {
397-
if (err) throw err;
397+
if (err) {
398+
// FreeBSD does not support V4MAPPED
399+
if (process.platform === 'freebsd') {
400+
assert(err instanceof Error);
401+
assert.strictEqual(err.code, 'EAI_BADFLAGS');
402+
assert.strictEqual(err.hostname, 'www.google.com');
403+
assert.ok(/getaddrinfo EAI_BADFLAGS/.test(err.message));
404+
done();
405+
return;
406+
} else {
407+
throw err;
408+
}
409+
}
398410
assert.ok(net.isIPv6(ip));
399411
assert.strictEqual(family, 6);
400412

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.