Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/parallel/test-net-dns-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const assert = require('assert');
const net = require('net');

const host = '*'.repeat(64);
const errCode = common.isOpenBSD ? 'EAI_FAIL' : 'ENOTFOUND';
// Resolving hostname > 63 characters may return EAI_FAIL (permanent failure).
const errCode = common.isOpenBSD || common.isSunOS ? 'EAI_FAIL' : 'ENOTFOUND';

const socket = net.connect(42, host, common.mustNotCall());
socket.on('error', common.mustCall(function(err) {
Expand Down