[wp-trac] [WordPress Trac] #60865: Some PHPUnit Tests are failing
WordPress Trac
noreply at wordpress.org
Mon Apr 1 21:32:10 UTC 2024
#60865: Some PHPUnit Tests are failing
-------------------------------------------------+-------------------------
Reporter: dextorlobo | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests fixed- | Focuses:
major dev-reviewed |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
For some reason, the tests still fail for me locally after [57904] due to
the difference in image sizes:
{{{
There were 4 failures:
1) Tests_Functions_wpRemoteFopen::test_wp_remote_fopen
Failed asserting that 31325 is identical to 40148.
tests/phpunit/tests/functions/wpRemoteFopen.php:34
2) Tests_HTTP_Functions::test_head_request
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'40148'
+'31325'
tests/phpunit/tests/http/functions.php::24
3) Tests_HTTP_Functions::test_get_request
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'40148'
+'31325'
tests/phpunit/tests/http/functions.php::69
4) Tests_HTTP_Functions::test_get_redirect
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'40148'
+'31325'
tests/phpunit/tests/http/functions.php:90
}}}
This happens on Windows and Ubuntu, but the same tests seem to pass on
GitHub Actions. This could use some more investigation, or perhaps a more
stable URL could be used for these requests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60865#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list