From 77b54c7409454a7b19ac114a92f96845cda6accc Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Tue, 10 Feb 2026 13:21:33 +0100 Subject: [PATCH] Stop setting the relayPort, since we explicitly set the TCP client --- .../simp/stomp/AbstractStompBrokerRelayIntegrationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/AbstractStompBrokerRelayIntegrationTests.java b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/AbstractStompBrokerRelayIntegrationTests.java index 9c665698f07..2777b83ca83 100644 --- a/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/AbstractStompBrokerRelayIntegrationTests.java +++ b/spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/AbstractStompBrokerRelayIntegrationTests.java @@ -121,7 +121,8 @@ public abstract class AbstractStompBrokerRelayIntegrationTests { StubMessageChannel channel = new StubMessageChannel(); List 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);