parent
4e95378fc6
commit
aad4916cac
|
@ -81,7 +81,7 @@ class WiretapConnector implements ClientHttpConnector {
|
||||||
* Retrieve the {@code ExchangeResult} for the given "request-id" header value.
|
* Retrieve the {@code ExchangeResult} for the given "request-id" header value.
|
||||||
*/
|
*/
|
||||||
public ExchangeResult claimRequest(String requestId) {
|
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);
|
Assert.notNull(result, "No match for " + WebTestClient.WEBTESTCLIENT_REQUEST_ID + "=" + requestId);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue