Skip to content

Commit

Permalink
Set cache size to 0 to prevent cached response in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 committed Dec 2, 2024
1 parent ef35e3a commit 13aba8e
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 13aba8e

Please sign in to comment.