Skip to content

Commit f1e86df

Browse files
committed
MAGETWO-58924: SQL error wait timeout error when saving categories
- fix static issues
1 parent 1287421 commit f1e86df

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

app/code/Magento/CatalogUrlRewrite/Observer/UrlRewriteHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(
6565
$this->urlPersist = $urlPersist;
6666
$this->productCollectionFactory = $productCollectionFactory;
6767
if (!isset($mergeDataProviderFactory)) {
68-
$mergeDataProviderFactory = $mergeDataProviderFactory = ObjectManager::getInstance()->get(MergeDataProviderFactory::class);
68+
$mergeDataProviderFactory = ObjectManager::getInstance()->get(MergeDataProviderFactory::class);
6969
}
7070
$this->mergeDataProviderPrototype = $mergeDataProviderFactory->create();
7171
}

app/code/Magento/CatalogUrlRewrite/Test/Unit/Model/Map/HashMapPoolTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ public function testGetDataMap()
4848
->method('create')
4949
->willReturnMap(
5050
[
51-
[
52-
DataCategoryHashMap::class,
53-
['category' => 1],
54-
$dataCategoryMapMock
55-
],
51+
[
52+
DataCategoryHashMap::class,
53+
['category' => 1],
54+
$dataCategoryMapMock
55+
],
5656
[
5757
DataProductHashMap::class,
5858
['category' => 1],
5959
$dataProductMapMock
6060
],
61-
[
62-
DataCategoryUsedInProductsHashMap::class,
63-
['category' => 2],
64-
$dataProductMapMockOtherCategory
65-
]
61+
[
62+
DataCategoryUsedInProductsHashMap::class,
63+
['category' => 2],
64+
$dataProductMapMockOtherCategory
65+
]
6666
]
6767
);
6868
$this->assertSame($dataCategoryMapMock, $this->model->getDataMap(DataCategoryHashMap::class, 1));

0 commit comments

Comments
 (0)