Skip to content

Commit 614123e

Browse files
committed
Update tests that fail on Windows
Issue gh-14609
1 parent 8bd6991 commit 614123e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OidcLogoutConfigurerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void logoutWhenRemoteLogoutUriThenUses() throws Exception {
212212
.param("logout_token", logoutToken))
213213
.andExpect(status().isBadRequest())
214214
.andExpect(content().string(containsString("partial_logout")))
215-
.andExpect(content().string(containsString("Connection refused")));
215+
.andExpect(content().string(containsString("not all sessions were terminated")));
216216
this.mvc.perform(get("/token/logout").session(one)).andExpect(status().isOk());
217217
}
218218

config/src/test/java/org/springframework/security/config/web/server/OidcLogoutSpecTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void logoutWhenRemoteLogoutUriThenUses() {
264264
.isBadRequest()
265265
.expectBody(String.class)
266266
.value(containsString("partial_logout"))
267-
.value(containsString("Connection refused"));
267+
.value(containsString("not all sessions were terminated"));
268268
this.test.get().uri("/token/logout").cookie("SESSION", one).exchange().expectStatus().isOk();
269269
}
270270

0 commit comments

Comments
 (0)