Skip to content

Commit 25b3daa

Browse files
committed
fixup: allow EAI_AGAIN as a valid error code
1 parent eef1017 commit 25b3daa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-dgram-connect.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ client.connect(PORT, common.mustCall(() => {
3737
});
3838

3939
client.connect(PORT, addresses.INVALID_HOST, common.mustCall((err) => {
40-
assert.strictEqual(err.code, 'ENOTFOUND');
40+
assert.ok(err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN');
4141

4242
client.once('error', common.mustCall((err) => {
43-
assert.strictEqual(err.code, 'ENOTFOUND');
43+
assert.ok(err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN');
4444
client.once('connect', common.mustCall(() => client.close()));
4545
client.connect(PORT);
4646
}));

0 commit comments

Comments
 (0)