From d4a77a394c1bc8e73ae093744d74b509e8c45189 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 18 Jan 2024 18:38:23 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/query/results.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/query/results.php b/tests/phpunit/tests/query/results.php index 40d05a4d9f..412d02fe83 100644 --- a/tests/phpunit/tests/query/results.php +++ b/tests/phpunit/tests/query/results.php @@ -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(