Make WordPress Core

Changeset 54045


Ignore:
Timestamp:
09/01/2022 01:34:21 AM (13 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/site-health.php

    r54043 r54045  
    350350                    0,
    351351                    3,
    352                     array( 'expires' => gmdate( 'r', time() + MINUTE_IN_SECONDS * 10 ) )
     352                    array( 'expires' => gmdate( 'r', time() + HOUR_IN_SECONDS ) )
    353353                ),
    354354                'expected_status' => 'good',
     
    359359                    0,
    360360                    3,
    361                     array( 'expires' => gmdate( 'r', time() - MINUTE_IN_SECONDS * 10 ) )
     361                    array( 'expires' => gmdate( 'r', time() - HOUR_IN_SECONDS ) )
    362362                ),
    363363                'expected_status'    => 'critical',
Note: See TracChangeset for help on using the changeset viewer.