[Bug] Hikari driver tests accept missing-driver fixture failures as success

Author: slievrlyCreated Sep 26, 2026Updated Sep 26, 2026

Check Ahead

  • Searched existing Hikari issues. #7499 reports the production driver-loader problem; this issue concerns false-positive regression tests.
  • Willing to fix.

Issue Description

The MySQL 8 Hikari regression test catches arbitrary setup exceptions and accepts them unless their message contains two selected substrings. In CI the datasource is never created because the MySQL 8 driver fixture is absent; the test prints that this may be expected and passes. The legacy-driver test also suppresses arbitrary setup failures. Other datasource fixtures leave pools open and can attempt background MySQL connections after the test ends.

Evidence

Java 17 CI job, commit 96e84e52f, raw lines 19116 and 19207: Non-driver related exception (might be expected), caused by cannot find jdbc folder. Later Druid pool creation threads report Communications link failure. These are normal driver-loading/provider tests, not intentional connection-failure tests.

Expected behavior

Verify datasource creation and a real connection with an available isolated driver fixture, fail on any unexpected setup error, and close every test-owned pool. Do not require an external MySQL server to test provider configuration.

Environment

Seata 2.8.0-SNAPSHOT, Java 17.