We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b25fc6f + e4d1e8d commit ff86f62Copy full SHA for ff86f62
dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo/MysqlTest.php
@@ -1,7 +1,7 @@
1
<?php
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details.
+ * Copyright 2012 Adobe
+ * All Rights Reserved.
5
*/
6
namespace Magento\Framework\DB\Adapter\Pdo;
7
@@ -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