Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#30948 closed defect (bug) (fixed)

Unit test test_query_tag_nun is failing

Reported by: valendesigns's profile valendesigns Owned by: pento's profile pento
Milestone: 4.2 Priority: normal
Severity: normal Version: 4.2
Component: Database Keywords:
Focuses: Cc:


I haven't run tests in a couple days, so sometime recently test_query_tag_nun started failing. I tried looking into it further, but I'm not sure what all has changed since I last did a pull request a couple days ago.

1) Tests_Query_Results::test_query_tag_nun
Failed asserting that actual size 0 matches expected size 1.

Change History (2)

#1 @SergeyBiryukov
10 years ago

  • Component changed from Build/Test Tools to Database
  • Milestone changed from Awaiting Review to 4.2

#2 @pento
10 years ago

  • Owner set to pento
  • Resolution set to fixed
  • Status changed from new to closed

In 31093:

WPDB: When wpdb::query() needs to sanity check a query string, make sure to run wpdb:flush() afterwards, to ensure the results from sanity check queries aren't mixed up with the results for the user query.

See #21212.

Fixes #30948.

Note: See TracTickets for help on using tickets.