Skip to content

Commit 2d3e19c

Browse files
jfarcandwilkinsona
authored andcommitted
Update Atmosphere versions used in smoke test
See gh-221144
1 parent c3ddfcd commit 2d3e19c

File tree

2 files changed

+6
-7
lines changed
  • spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-atmosphere

2 files changed

+6
-7
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-atmosphere/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ description = "Spring Boot Atmosphere smoke test"
77

88
dependencies {
99
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web"))
10-
implementation("org.atmosphere:atmosphere-runtime:2.4.14")
10+
implementation("org.atmosphere:atmosphere-runtime:2.6.1")
1111

12-
runtimeOnly("org.webjars:atmosphere-javascript:2.3.4")
12+
runtimeOnly("org.webjars:atmosphere-javascript:3.0.4")
1313

1414
testImplementation(enforcedPlatform(project(":spring-boot-project:spring-boot-dependencies")))
1515
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-atmosphere/src/main/resources/static/javascript/application.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ $(function() {
4444
+ request.reconnectInterval
4545
}));
4646
subSocket
47-
.push(atmosphere.util
48-
.stringifyJSON({
47+
.push(JSON.stringify({
4948
author : author,
5049
message : 'is inactive and closed the connection. Will reconnect in '
5150
+ request.reconnectInterval
@@ -81,7 +80,7 @@ $(function() {
8180

8281
var message = response.responseBody;
8382
try {
84-
var json = atmosphere.util.parseJSON(message);
83+
var json = JSON.parse(message);
8584
} catch (e) {
8685
console.log('This doesn\'t look like a valid JSON: ', message);
8786
return;
@@ -105,7 +104,7 @@ $(function() {
105104
text : 'Server closed the connection after a timeout'
106105
}));
107106
if (subSocket) {
108-
subSocket.push(atmosphere.util.stringifyJSON({
107+
subSocket.push(JSON.stringify({
109108
author : author,
110109
message : 'disconnecting'
111110
}));
@@ -140,7 +139,7 @@ $(function() {
140139
author = msg;
141140
}
142141

143-
subSocket.push(atmosphere.util.stringifyJSON({
142+
subSocket.push(JSON.stringify({
144143
author : author,
145144
message : msg
146145
}));

0 commit comments

Comments
 (0)