Skip to content
Browse files

test: use reserved .invalid TLD for invalid address in test

RFC 2606 reserves ithe .invalid top-level-domain for use in "domain
names that are sure to be invalid and which it is obvious at a glance
are invalid." Replace `` which actually isn't guaranteed
to not exist. ( is for examples, but at least one address
does in fact exist in that TLD.)

PR-URL: #30545
Reviewed-By: Anna Henningsen <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Luigi Pinca <>
  • Loading branch information
Trott authored and MylesBorins committed Nov 19, 2019
1 parent d802393 commit 9869aaaee46e22a6de0f22904ee83087cd6c3771
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/internet/test-dgram-send-cb-quelches-error.js
@@ -24,7 +24,7 @@ function callbackOnly(err) {
socket.removeListener('error', onEvent);
socket.on('error', mustCall(onError));
socket.send(buffer, 0, buffer.length, 100, '');
socket.send(buffer, 0, buffer.length, 100, 'dne.invalid');

function onEvent(err) {

0 comments on commit 9869aaa

Please sign in to comment.
You can’t perform that action at this time.