Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#30290 closed defect (bug) (fixed)

WP_XMLRPC_UnitTestCase tearDown should remove added uploads

Reported by: jeremyfelt's profile jeremyfelt Owned by: jeremyfelt's profile jeremyfelt
Milestone: 4.1 Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords: has-patch
Focuses: Cc:

Description

A handful of tests in the XMLRPC area upload files, but the group does not clean up after itself when done. Every once and a while this causes an issue with incrementing filenames. This is especially noticeable in multisite once we fix a couple other problems - see #30256.

Attachments (1)

30290.diff (416 bytes) - added by jeremyfelt 9 years ago.

Download all attachments as: .zip

Change History (2)

@jeremyfelt
9 years ago

#1 @jeremyfelt
9 years ago

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

In 30279:

Use remove_added_uploads() in tearDown() for XMLRPC tests

This cleanup avoids false test failures due to incrementing filenames in the uploads directory.

Fixes #30290

Note: See TracTickets for help on using tickets.