mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
WiretapConnector removes exchanges
Issue: SPR-15744
This commit is contained in:
+1
-1
@@ -81,7 +81,7 @@ class WiretapConnector implements ClientHttpConnector {
|
||||
* Retrieve the {@code ExchangeResult} for the given "request-id" header value.
|
||||
*/
|
||||
public ExchangeResult claimRequest(String requestId) {
|
||||
ExchangeResult result = this.exchanges.get(requestId);
|
||||
ExchangeResult result = this.exchanges.remove(requestId);
|
||||
Assert.notNull(result, "No match for " + WebTestClient.WEBTESTCLIENT_REQUEST_ID + "=" + requestId);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user