Skip to content

Commit ff86f62

Browse files
authored
Merge pull request #9658 from magento-gl/AC-14090
AC-14090::Integration Failing with PHP8.4 and MYSQL 8.4
2 parents b25fc6f + e4d1e8d commit ff86f62

File tree

1 file changed

+7
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo

1 file changed

+7
-2
lines changed

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

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2012 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Framework\DB\Adapter\Pdo;
77

@@ -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)