[wp-trac] [WordPress Trac] #59938: phpUnit test for wpScheduledDelete

WordPress Trac noreply at wordpress.org
Sun Feb 11 17:03:04 UTC 2024


#59938: phpUnit test for wpScheduledDelete
--------------------------------------+---------------------
 Reporter:  pbearne                   |       Owner:  jorbin
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.5
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"57583" 57583]:
 {{{
 #!CommitTicketReference repository="" revision="57583"
 Tests: Adjust the meta key time in `wp_scheduled_delete()` tests.

 Occasionally, the tests verifying that old trashed posts or comments are
 not deleted if not old enough can take longer than expected, leading to
 false positives when comparing the timestamp in `wp_scheduled_delete()`,
 and resulting in subsequent test failures.

 This commit aims to resolve the race condition.

 Follow-up to [57224], [57237].

 See #59938.
 }}}

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


More information about the wp-trac mailing list