Skip to content

Commit e8a7d20

Browse files
committed
fixup! test: fix IPv6 checks on IBM i
1 parent 6871813 commit e8a7d20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-net-autoselectfamilydefault.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ function createDnsServer(ipv6Addr, ipv4Addr, cb) {
129129
assert.strictEqual(error.message, `connect ECONNREFUSED ::1:${port}`);
130130
} else if (error.code === 'EAFNOSUPPORT') {
131131
assert.strictEqual(error.message, `connect EAFNOSUPPORT ::1:${port} - Local (undefined:undefined)`);
132+
} else if (common.isIBMi) {
133+
// IBMi returns EUNATCH (ERRNO 42) when IPv6 is disabled
134+
// keep this errno assertion until EUNATCH is recognized by libuv
135+
assert.strictEqual(error.errno, -42);
132136
} else {
133137
assert.strictEqual(error.code, 'EADDRNOTAVAIL');
134138
assert.strictEqual(error.message, `connect EADDRNOTAVAIL ::1:${port} - Local (:::0)`);

0 commit comments

Comments
 (0)