-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Test failure: MysqliConnectionTest::testRestoresErrorHandlerOnException on appveyor #2924
Comments
Assertion was added in #2704. |
@photodude The simplest way seems to be to remove the assert for message and only assert that exception was thrown. Maybe it could be replaced by asserting exception code, if there is any. |
FWIW, dropping the verification of the exception message is acceptable since it belongs to the current TCP/IP stack implementation, not to the DBAL or even the DB platform. Unless there's something else which we can use to identify the nature of the error (like the error code mentioned above), we can just verify the fact of the exception thrown. |
I did a quick test switching https://travis-ci.org/photodude/dbal/jobs/322699909 seems like just checking that an exception was thrown might be the primary option. |
@photodude #2704 seems to be about a generic error, not necessarily the "Network is unreachable" one. Looks like not the best way to trigger a generic error was chosen. The test checks the error message to prove that this is the error triggered by |
Also note this is an issue specifically with testing on windows as it's coming from the WIP appveyor CI PR |
@photodude I understand. That's why I'm suggesting instead of triggering the error whose message depends on the OS to trigger another one which doesn't. |
Closing as addressed with the completion of and scope changes in the initial AppVeyor project |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The following failure occurred on recent appveyor testing with
db=mariadb, driver=pdo_mysql
db=mssql, driver=sqlsrv, db_version=sql2008r2sp2
db=mssql, driver=pdo_sqlsrv, db_version=sql2008r2sp2
https://ci.appveyor.com/project/photodude/dbal/build/1.0.256/job/b74yrv4i6h3i0b1y
https://ci.appveyor.com/project/photodude/dbal/build/1.0.256/job/iakaekt0evwh68lr
https://ci.appveyor.com/project/photodude/dbal/build/1.0.257/job/th66xvantxwway5t
The text was updated successfully, but these errors were encountered: