[TESTS] Remove copied upload test files, if upload failed

This commit is contained in:
Hugo Sales 2021-08-16 17:09:02 +01:00
parent aef61e4c73
commit e2caf19b67
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ class MediaFixtures extends Fixture
try { try {
GSFile::sanitizeAndStoreFileAsAttachment($file); GSFile::sanitizeAndStoreFileAsAttachment($file);
} catch (\Jcupitt\Vips\Exception $e) { } catch (\Jcupitt\Vips\Exception $e) {
echo "Could not save file {$copy_filepath}"; echo "Could not save file {$copy_filepath}\n";
} }
@unlink($copy_filepath);
}); });
$manager->flush(); $manager->flush();
} }