Build/Test Tools: Fix unstable query tests.

Three `WP_Query` tests could randomly fail due to an undefined order because two test posts were using the exact same `post_date`.

Props boonebgorges, flixos90.
Fixes #60288.


git-svn-id: https://develop.svn.wordpress.org/trunk@57308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz 2024-01-18 18:38:23 +00:00
parent e707e37f23
commit d4a77a394c

View File

@ -156,7 +156,7 @@ class Tests_Query_Results extends WP_UnitTestCase {
self::$post_ids[] = $factory->post->create(
array(
'post_title' => 'no-comments',
'post_date' => '2009-10-01 00:00:00',
'post_date' => '2009-10-15 00:00:00',
)
);
self::$post_ids[] = $factory->post->create(