[wp-trac] [WordPress Trac] #32971: Tests for image thumbnail processing should not rely on a static filename

WordPress Trac noreply at wordpress.org
Mon Jul 13 03:28:30 UTC 2015


#32971: Tests for image thumbnail processing should not rely on a static filename
--------------------------+-----------------------
 Reporter:  jeremyfelt    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.3
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  multisite     |
--------------------------+-----------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32971>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list