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 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 */
66namespace 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 {
You can’t perform that action at this time.
0 commit comments