Bug #107313 A lot of errors in mysql-connector-j unit test cases
Submitted: 17 May 2022 7:38 Modified: 29 Jun 2022 10:49
Reporter: Qizhi Wang (OCA) Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / J Severity:S7 (Test Cases)
Version:8.0.20 (newest at github) OS:Any
Assigned to: Filipe Silva CPU Architecture:Any

[17 May 2022 7:38] Qizhi Wang
Description:
When I run unit tests in https://github.com/mysql/mysql-connector-j, I get so many errors that I wonder if I've done something wrong.

How to repeat:
Just run test cases directly.

Suggested fix:
Please fix your unit test cases, otherwise, how can you have confidence in your release code?
[29 Jun 2022 10:49] Filipe Silva
Hi Qizhi Wang, thanks for your interest in Connector/J.

All Connector/J tests execute successfully. However, there are some pre-conditions the server must satisfy so that some of the tests work, such as setting a max_allowed_packet of 40M, pointing to the keys and certificates included in the directory test/config/ssl-test-certs or filling up the time zone tables.

We are working in making the testsuite run out of the box with (almost) any server setup but this is a long, on-going, process.