mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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 `dne.example.com` which actually isn't guaranteed to not exist. (example.com is for examples, but at least one address does in fact exist in that TLD.) PR-URL: https://github.com/nodejs/node/pull/30545 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
d802393336
commit
9869aaaee4
1 file changed
+1
-1
@@ -24,7 +24,7 @@ function callbackOnly(err) {
|
||||
assert.ok(err);
|
||||
socket.removeListener('error', onEvent);
|
||||
socket.on('error', mustCall(onError));
|
||||
socket.send(buffer, 0, buffer.length, 100, 'dne.example.com');
|
||||
socket.send(buffer, 0, buffer.length, 100, 'dne.invalid');
|
||||
}
|
||||
|
||||
function onEvent(err) {
|
||||
|
||||
Reference in new issue
Block a user