diff --git a/test/parallel/test-dgram-address.js b/test/parallel/test-dgram-address.js index f14b910fc27a2b..2a41755e1c2ea6 100644 --- a/test/parallel/test-dgram-address.js +++ b/test/parallel/test-dgram-address.js @@ -77,5 +77,5 @@ if (common.hasIPv6) { assert.throws(() => { socket.address(); - }, /^Error: getsockname EINVAL$/); + }, /^Error: getsockname EBADF$/); }