File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
dev/tests/integration/testsuite/Magento/Framework/DB/Adapter/Pdo
lib/internal/Magento/Framework/DB/Adapter/Pdo Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,6 @@ 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
-
83
78
$ result = $ this ->executeQuery ('SELECT 1 ' );
84
79
$ this ->assertInstanceOf (\Magento \Framework \DB \Statement \Pdo \Mysql::class, $ result );
85
80
} finally {
Original file line number Diff line number Diff line change @@ -658,6 +658,7 @@ private function performQuery(callable $queryExecutor)
658
658
$ connectionErrors = [
659
659
2006 , // SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
660
660
2013 , // SQLSTATE[HY000]: General error: 2013 Lost connection to MySQL server during query
661
+ 4031 , // SQLSTATE[HY000]: General error: 4031 The client was disconnected by server because of inactivity.
661
662
];
662
663
$ triesCount = 0 ;
663
664
do {
You can’t perform that action at this time.
0 commit comments