File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2012 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
namespace Magento \Framework \DB \Adapter \Pdo ;
7
7
@@ -75,6 +75,11 @@ public function testWaitTimeout()
75
75
76
76
// Sleep for time greater than wait_timeout and try to perform query
77
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
+
78
83
$ result = $ this ->executeQuery ('SELECT 1 ' );
79
84
$ this ->assertInstanceOf (\Magento \Framework \DB \Statement \Pdo \Mysql::class, $ result );
80
85
} finally {
You can’t perform that action at this time.
0 commit comments