-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test of timeout PDOException: Packets out of order
#352
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #352 +/- ##
=========================================
Coverage 98.70% 98.70%
- Complexity 172 173 +1
=========================================
Files 15 15
Lines 539 540 +1
=========================================
+ Hits 532 533 +1
Misses 7 7 ☔ View full report in Codecov by Sentry. |
|
||
$this->assertSame('1', $result); | ||
|
||
$db->close(); | ||
} | ||
|
||
public function testNotRestartConnectionOnTimeoutInTransaction(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were going to restart it without error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a query in a transaction it is not correct to retry the query in the new connection out of the transaction.
We can close the old connection but the error will still be thrown.
Related PR