Stop setting the relayPort, since we explicitly set the TCP client

This commit is contained in:
Sam Brannen
2026-02-10 13:21:33 +01:00
parent ff9ba15762
commit 77b54c7409
@@ -121,7 +121,8 @@ public abstract class AbstractStompBrokerRelayIntegrationTests {
StubMessageChannel channel = new StubMessageChannel();
List<String> prefixes = Arrays.asList("/queue/", "/topic/");
this.relay = new StompBrokerRelayMessageHandler(channel, this.responseChannel, channel, prefixes);
this.relay.setRelayPort(this.port);
// We do not set the relayPort, since we explicitly set the TCP client.
// this.relay.setRelayPort(this.port);
this.relay.setApplicationEventPublisher(this.eventPublisher);
this.relay.setSystemHeartbeatReceiveInterval(0);
this.relay.setSystemHeartbeatSendInterval(0);