diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OidcLogoutConfigurerTests.java b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OidcLogoutConfigurerTests.java index 9512ed592a..934c8bede9 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OidcLogoutConfigurerTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/client/OidcLogoutConfigurerTests.java @@ -212,7 +212,7 @@ public class OidcLogoutConfigurerTests { .param("logout_token", logoutToken)) .andExpect(status().isBadRequest()) .andExpect(content().string(containsString("partial_logout"))) - .andExpect(content().string(containsString("Connection refused"))); + .andExpect(content().string(containsString("not all sessions were terminated"))); this.mvc.perform(get("/token/logout").session(one)).andExpect(status().isOk()); } diff --git a/config/src/test/java/org/springframework/security/config/web/server/OidcLogoutSpecTests.java b/config/src/test/java/org/springframework/security/config/web/server/OidcLogoutSpecTests.java index 03557c8c48..9f5627db79 100644 --- a/config/src/test/java/org/springframework/security/config/web/server/OidcLogoutSpecTests.java +++ b/config/src/test/java/org/springframework/security/config/web/server/OidcLogoutSpecTests.java @@ -264,7 +264,7 @@ public class OidcLogoutSpecTests { .isBadRequest() .expectBody(String.class) .value(containsString("partial_logout")) - .value(containsString("Connection refused")); + .value(containsString("not all sessions were terminated")); this.test.get().uri("/token/logout").cookie("SESSION", one).exchange().expectStatus().isOk(); }