We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c05217 commit 88ac072Copy full SHA for 88ac072
dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo/MysqlTest.php
@@ -75,6 +75,11 @@ public function testWaitTimeout()
75
76
// Sleep for time greater than wait_timeout and try to perform query
77
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
83
$result = $this->executeQuery('SELECT 1');
84
$this->assertInstanceOf(\Magento\Framework\DB\Statement\Pdo\Mysql::class, $result);
85
} finally {
0 commit comments