From 25b3daa0579cd0e0f612613f1c8ef58f28515696 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Tue, 2 Apr 2019 07:00:00 +0200 Subject: [PATCH] fixup: allow EAI_AGAIN as a valid error code --- test/parallel/test-dgram-connect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-dgram-connect.js b/test/parallel/test-dgram-connect.js index 16c0c35941a86e..8fba27bcd2ac83 100644 --- a/test/parallel/test-dgram-connect.js +++ b/test/parallel/test-dgram-connect.js @@ -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); }));