Skip to content

Commit

Permalink
Fix test causing failure in RestClientObservationTests
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Oct 23, 2024
1 parent 2b113e3 commit d05f880
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -824,13 +824,14 @@ void retrieveDefaultCookiesAsCookieHeader(ClientHttpRequestFactory requestFactor
.build();

restClientWithCookies.get()
.uri("/greeting")
.header("X-Test-Header", "testvalue")
.retrieve();
.uri("/greeting")
.header("X-Test-Header", "testvalue")
.retrieve()
.body(String.class);

expectRequest(request ->
assertThat(request.getHeader(HttpHeaders.COOKIE))
.isEqualTo("testCookie=firstValue; testCookie=secondValue")
assertThat(request.getHeader(HttpHeaders.COOKIE))
.isEqualTo("testCookie=firstValue; testCookie=secondValue")
);
}

Expand Down

0 comments on commit d05f880

Please sign in to comment.