[wp-trac] [WordPress Trac] #60831: Investigate flakey `Tests_Admin_wpSiteHealth ::test_object_cache_thresholds()` test

WordPress Trac noreply at wordpress.org
Fri Jan 30 00:53:19 UTC 2026


#60831: Investigate flakey `Tests_Admin_wpSiteHealth
::test_object_cache_thresholds()` test
--------------------------------------+----------------------------
 Reporter:  swissspidy                |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9.1
Component:  Site Health               |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61562" 61562]:
 {{{
 #!CommitTicketReference repository="" revision="61562"
 Site Health: Reduce thresholds for object cache threshold tests.

 Reduces the object counts required for Site Health to recommend a
 persistent object cache in the
 `Tests_Admin_wpSiteHealth::test_object_cache_thresholds()` data provider.

 This is to ensure that the number of objects (terms, posts, etc) are
 certainly below the defaults created by the test suite during set up. The
 new threasholds are:

 - terms count: 0
 - alloptions count: 1
 - alloptions bytes: 10

 This follows the reduction to the options count threshold to 1 in r61438.

 Props peterwilsoncc, swissspidy, wildworks.
 Fixes #60831.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60831#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list