Closed nbagnard closed 2 years ago
One of the unit tests, testBasicURL, is failing with java.sql.SQLTimeoutException: Timeout. Can't connect.
I took a quick look and prior to the change the isValid()
would also hit the exception and return false but the return was not being checked. We may need to change the unit test to account for the exception.
One of the unit tests, testBasicURL, is failing with
java.sql.SQLTimeoutException: Timeout. Can't connect.
I took a quick look and prior to the change theisValid()
would also hit the exception and return false but the return was not being checked. We may need to change the unit test to account for the exception.
Oh, this is an issue with the test. Unit tests are not supposed to try to connect "for real". I updated the test to call getUnvalidatedConnection as it should have been doing.
evergreen merge
Timeout errors were not propagated properly and the connection validation was incorrectly successful leading to unclear errors when executing queries.