Skip to content

Commit 88ac072

Browse files
committed
DBC and Integration Failing with PHP8.4 and MYSQL 8.4
1 parent 9c05217 commit 88ac072

File tree

1 file changed

+5
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ 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+
7883
$result = $this->executeQuery('SELECT 1');
7984
$this->assertInstanceOf(\Magento\Framework\DB\Statement\Pdo\Mysql::class, $result);
8085
} finally {

0 commit comments

Comments
 (0)