Skip to content

Commit 0a2e2b6

Browse files
committed
ACPT-1643: Fix Inventory salable performance issue
- Fix integration tests;
1 parent e4d7ff8 commit 0a2e2b6

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

InventoryInStorePickupSales/Test/Integration/SourceSelection/GetSourceItemQtyAvailableServiceTest.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
use Magento\Framework\Api\SearchCriteriaBuilder;
1212
use Magento\Framework\Exception\NoSuchEntityException;
13-
use Magento\Indexer\Model\Indexer\CollectionFactory;
1413
use Magento\InventoryApi\Api\Data\SourceItemInterface;
1514
use Magento\InventoryApi\Api\SourceItemRepositoryInterface;
1615
use Magento\InventoryInStorePickupSales\Model\SourceSelection\GetSourceItemQtyAvailableService;
@@ -218,17 +217,4 @@ private function getSourceItem(string $sourceCode, $sku): SourceItemInterface
218217
)->getItems()
219218
);
220219
}
221-
222-
/**
223-
* @inheritdoc
224-
*/
225-
public static function tearDownAfterClass(): void
226-
{
227-
$indexerCollectionFactory = Bootstrap::getObjectManager()->create(CollectionFactory::class);
228-
$indexerCollection = $indexerCollectionFactory->create();
229-
230-
foreach ($indexerCollection as $indexer) {
231-
$indexer->reindexAll();
232-
}
233-
}
234220
}

InventoryIndexer/Test/Integration/Model/Queue/UpdateIndexSalabilityStatusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function setUp(): void
6565
}
6666

6767
#[
68-
DbIsolation(false),
68+
DbIsolation(true),
6969
AppIsolation(true),
7070
DataFixture(SourceFixture::class, as: 'source2'),
7171
DataFixture(StockFixture::class, as: 'stock2'),
@@ -109,7 +109,7 @@ public function testProductsStatusesAfterBuyingChildProduct(): void
109109
}
110110

111111
#[
112-
DbIsolation(false),
112+
DbIsolation(true),
113113
AppIsolation(true),
114114
DataFixture(SourceFixture::class, as: 'source2'),
115115
DataFixture(StockFixture::class, as: 'stock2'),

0 commit comments

Comments
 (0)