Skip to content

Commit

Permalink
fixup: allow EAI_AGAIN as a valid error code
Browse files Browse the repository at this point in the history
  • Loading branch information
santigimeno committed Apr 2, 2019
1 parent eef1017 commit 25b3daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-dgram-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ client.connect(PORT, common.mustCall(() => {
});

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

client.once('error', common.mustCall((err) => {
assert.strictEqual(err.code, 'ENOTFOUND');
assert.ok(err.code === 'ENOTFOUND' || err.code === 'EAI_AGAIN');
client.once('connect', common.mustCall(() => client.close()));
client.connect(PORT);
}));
Expand Down

0 comments on commit 25b3daa

Please sign in to comment.