[Bug] TM bootstrap option test attempts a real connection to an absent server
Author: slievrlyCreated Sep 26, 2026Updated Sep 26, 2026
Check Ahead
- Searched existing issues for TmNettyClientTest.
- Willing to fix.
Issue Description
The normal TM bootstrap-option test initializes a real connection manager against localhost:8091 with no server fixture. It logs registration/connect failures but passes by checking only Bootstrap options. It also changes the RM fail-fast flag even though this is a TM test.
Evidence
Java 17 CI job, commit 96e84e52f, raw line 4664, stack TmNettyClientTest.testInit. This is separate from testCheckFailFast, which intentionally verifies connection failure and must be preserved.
Expected behavior
The bootstrap unit test should verify bootstrap configuration and connection initialization delegation without requiring an external server, and clean up its client/channel deterministically.
Environment
Seata 2.8.0-SNAPSHOT, Java 17.
Source: apache/incubator-seata