Skip to content

Commit 727294d

Browse files
Merge pull request #9669 from magento-commerce/revert-9658-AC-14090
Revert "AC-14090::Integration Failing with PHP8.4 and MYSQL 8.4"
2 parents 11be3df + dd5cf4a commit 727294d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

app/code/Magento/CatalogRule/Test/Mftf/Test/CatalogPriceRuleAndCustomerGroupMembershipArePersistedUnderLongTermCookieTest.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2018 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

@@ -96,6 +96,7 @@
9696
<argument name="categoryUrl" value="$createCategory.custom_attributes[url_key]$"/>
9797
<argument name="productName" value="$createProduct.name$"/>
9898
</actionGroup>
99+
<waitForPageLoad time="30" stepKey="waitFormReload"/>
99100
<dontSeeElement selector="{{StorefrontCategoryProductSection.ProductCatalogRuleSpecialPriceTitleByName($createProduct.name$)}}" stepKey="dontSeeSpecialPrice"/>
100101
</test>
101102
</tests>

dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo/MysqlTest.php

-5
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ public function testWaitTimeout()
7575

7676
// Sleep for time greater than wait_timeout and try to perform query
7777
sleep($minWaitTimeout + 1);
78-
79-
// Reconnect to the database to ensure the connection is valid
80-
$this->getDbAdapter()->closeConnection();
81-
$this->getDbAdapter()->getConnection(); // Reconnect
82-
8378
$result = $this->executeQuery('SELECT 1');
8479
$this->assertInstanceOf(\Magento\Framework\DB\Statement\Pdo\Mysql::class, $result);
8580
} finally {

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

+1
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ private function performQuery(callable $queryExecutor)
658658
$connectionErrors = [
659659
2006, // SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
660660
2013, // SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query
661+
4031, // SQLSTATE[HY000]: General error: 4031 The client was disconnected by server because of inactivity.
661662
];
662663
$triesCount = 0;
663664
do {

0 commit comments

Comments
 (0)