mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 16:10:43 +01:00
Tests: Increase the time difference for the expires
header in Site Health page cache tests.
This aims to avoid a race condition in the Code Coverage Report, which takes longer than 10 minutes to run, and by the time the page cache test runs, the `expires` header that is supposed to be in the future is already in the past. Follow-up to [54043]. Props Clorith, davidbaumwald, flixos90, desrosj, SergeyBiryukov. See #56041. git-svn-id: https://develop.svn.wordpress.org/trunk@54045 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1006729247
commit
3a730ec57c
@ -349,7 +349,7 @@ class Tests_Site_Health extends WP_UnitTestCase {
|
||||
'responses' => array_fill(
|
||||
0,
|
||||
3,
|
||||
array( 'expires' => gmdate( 'r', time() + MINUTE_IN_SECONDS * 10 ) )
|
||||
array( 'expires' => gmdate( 'r', time() + HOUR_IN_SECONDS ) )
|
||||
),
|
||||
'expected_status' => 'good',
|
||||
'expected_label' => $good_label,
|
||||
@ -358,7 +358,7 @@ class Tests_Site_Health extends WP_UnitTestCase {
|
||||
'responses' => array_fill(
|
||||
0,
|
||||
3,
|
||||
array( 'expires' => gmdate( 'r', time() - MINUTE_IN_SECONDS * 10 ) )
|
||||
array( 'expires' => gmdate( 'r', time() - HOUR_IN_SECONDS ) )
|
||||
),
|
||||
'expected_status' => 'critical',
|
||||
'expected_label' => $critical_label,
|
||||
|
Loading…
x
Reference in New Issue
Block a user