Skip to content

Commit d667f6f

Browse files
committed
Tests: Use better domain for HTTP API invalid hostname test.
The previous domain that was used to test for a host whose IPv4 address cannot be resolved, `exampleeeee.com`, got registered and has an A-record now, so it's not invalid anymore. `.invalid` is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid. Reference: [https://datatracker.ietf.org/doc/html/rfc2606#section-2 Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples]. Follow-up to [52084], [58384], [58388]. Reviewed by peterwilsoncc. Merges test changes from [59293] to the 6.0 branch. Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov. Fixes #62303. git-svn-id: https://develop.svn.wordpress.org/branches/6.0@59304 602fd350-edb4-49c9-b593-d223f7449a82
1 parent bbb51ca commit d667f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/phpunit/tests/http/http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public function data_wp_http_validate_url_should_not_validate() {
540540
'url' => 'http://[exam]ple.com/caniload.php',
541541
),
542542
'a host whose IPv4 address cannot be resolved' => array(
543-
'url' => 'http://exampleeeee.com/caniload.php',
543+
'url' => 'http://example.invalid/caniload.php',
544544
),
545545
'an external request when not allowed' => array(
546546
'url' => 'http://192.168.0.1/caniload.php',

0 commit comments

Comments
 (0)