Skip to content

Commit

Permalink
Merge pull request #1481 from jedla97/3.15-fix-sec-web-auth-on-windows
Browse files Browse the repository at this point in the history
[3.15] Backport of `Set cache size to 0 to prevent cached response in tests`
  • Loading branch information
rsvoboda authored Dec 3, 2024
2 parents 6163026 + a79c696 commit 5c60fcf
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ private WebClient createWebClient() {
WebClient webClient = new WebClient();

webClient.setCssErrorHandler(new SilentCssErrorHandler());
// Setting the cache size to zero as webClient by default can store cached request,
// which causing the `testTokenTimeoutLogout` fail as the session cookie is not changed
webClient.getCache().setMaxSize(0);

return webClient;
}
Expand Down

0 comments on commit 5c60fcf

Please sign in to comment.