Skip to content

Commit e9501dd

Browse files
committed
Fix broken WebSocketParserTests
1 parent 934d718 commit e9501dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-integration-websocket/src/test/java/org/springframework/integration/websocket/config/WebSocketParserTests-context.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
handshake-handler="handshakeHandler"
2121
handshake-interceptors="handshakeInterceptor"
2222
decorator-factories="decoratorFactory"
23-
allowed-origins="http://foo.com">
23+
allowed-origins="https://example.com">
2424
<int-websocket:sockjs client-library-url="https://foo.sock.js"
2525
disconnect-delay="4000"
2626
heartbeat-time="30000"

spring-integration-websocket/src/test/java/org/springframework/integration/websocket/config/WebSocketParserTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void testDefaultInboundChannelAdapterAndServerContainer() {
165165
assertSame(this.handshakeInterceptor, interceptors[0]);
166166
assertEquals(100, TestUtils.getPropertyValue(this.serverWebSocketContainer, "sendTimeLimit"));
167167
assertEquals(100000, TestUtils.getPropertyValue(this.serverWebSocketContainer, "sendBufferSizeLimit"));
168-
assertArrayEquals(new String[] {"http://www.foo.com/"},
168+
assertArrayEquals(new String[] {"https://example.com"},
169169
TestUtils.getPropertyValue(this.serverWebSocketContainer, "origins", String[].class));
170170

171171
WebSocketHandlerDecoratorFactory[] decoratorFactories =

0 commit comments

Comments
 (0)