Opened 11 years ago
Closed 11 years ago
#32971 closed defect (bug) (fixed)
Tests for image thumbnail processing should not rely on a static filename
| Reported by: | jeremyfelt | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Media | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
Description
As of [33181], builds in Travis are failing during multisite tests due to a mismatch in filename between test-image.jpg and test-image1.jpg. It appears this may be the case because of how fast Travis runs the tests as I am unable to reproduce locally.
In test_insert_image_no_thumb(), we're currently checking that the returned filename is test-image.jpg, when it could be changed by wp_upload_bits() if a conflict exists. The new site icon tests also make use of test-image.jpg, which is likely where wires started crossing.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 33188: