Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #51109, comment 1


Ignore:
Timestamp:
08/23/2020 03:48:57 AM (4 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51109, comment 1

    v1 v2  
    1 If looks like [48840] is not the culprit per se, it just uncovered the fact that the failing test was fragile in the first place.
     1It looks like [48840] is not the culprit per se, it just uncovered the fact that the failing test was fragile in the first place.
    22
    33Specifically, the test ensures that metadata for an orphan term is not lazy loaded, because it's not attached to any posts. However, by the time the test runs, the `WP_Metadata_Lazyloader` queue contains quite a few IDs from previous tests, one of which can coincide with the orphan term ID from this test. When that happens, the term meta is retrieved from the cache and not from the database, as the test attempts to verify.