Closed williams-jack closed 2 months ago
When the FilesController test is not the first test to run, The teardown was attempting to remove the upload dir while files from the previous tests that utilized Upload populated that directory, thus causing a directory not empty error.
FilesController
teardown
Upload
So this failed too, because now if your tests run first, the uploads directory doesn't exist yet!
When the
FilesController
test is not the first test to run, Theteardown
was attempting to remove the upload dir while files from the previous tests that utilizedUpload
populated that directory, thus causing a directory not empty error.