mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
e707e37f23
commit
d4a77a394c
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user