[wp-trac] [WordPress Trac] #26345: Failure in Tests_Post_Query::test_meta_query_decimal_results()
WordPress Trac
noreply at wordpress.org
Sun Dec 1 00:41:43 UTC 2013
#26345: Failure in Tests_Post_Query::test_meta_query_decimal_results()
----------------------------+-----------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.8
Component: Unit Tests | Version:
Severity: normal | Keywords:
----------------------------+-----------------
The test sometimes fails due to different order of items in the array:
{{{
1) Tests_Post_Query::test_meta_query_decimal_results
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 3
- 1 => 4
- 2 => 5
+ 0 => 5
+ 1 => 3
+ 2 => 4
)
}}}
Since we don't specify an order there, `assertEqualSets()` should be used
instead of direct array comparison.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26345>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list