GH-3509: Fix if test in previous commit

Caused interceptor to be skipped.

**cherry-pick to 5.4.x**

* Fix race in new tests

* Remove overloaded conn id in test interceptor.
This commit is contained in:
Gary Russell
2021-03-17 18:33:34 -04:00
committed by GitHub
parent 482673a159
commit 90a2f4bff1
3 changed files with 5 additions and 6 deletions

View File

@@ -57,7 +57,7 @@ public class TcpNetClientConnectionFactory extends
this.tcpNetConnectionSupport.createNewConnection(socket, false, isLookupHost(),
getApplicationEventPublisher(), getComponentName());
TcpConnectionSupport wrapped = wrapConnection(connection);
if (wrapped.equals(connection)) {
if (!wrapped.equals(connection)) {
connection.setSenders(getSenders());
connection = wrapped;
}