Skip to content

Commit a4dc950

Browse files
committed
B2B-2023: [AWS S3] [Integration Tests]: Investigate Test Failures in CatalogImportExport module
1 parent b2116d2 commit a4dc950

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTestBase.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ protected function setUp(): void
9898
*/
9999
protected function tearDown(): void
100100
{
101-
$filesystem = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(Filesystem::class);
102-
$mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::MEDIA);
103-
$mediaDirectory->delete('import/images');
104-
105101
/* We rollback here the products created during the Import because they were
106102
created during test execution and we do not have the rollback for them */
107103
foreach ($this->importedProducts as $productSku) {
@@ -215,6 +211,7 @@ public static function mediaImportImageFixtureRollback()
215211
$varDirectory = $fileSystem->getDirectoryWrite(DirectoryList::VAR_DIR);
216212
$varDirectory->delete('import');
217213
$mediaDirectory->delete('catalog');
214+
$mediaDirectory->delete('import');
218215
}
219216

220217
/**

0 commit comments

Comments
 (0)