Skip to content

Commit aad4916

Browse files
committed
WiretapConnector removes exchanges
Issue: SPR-15744
1 parent 4e95378 commit aad4916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-test/src/main/java/org/springframework/test/web/reactive/server/WiretapConnector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri,
8181
* Retrieve the {@code ExchangeResult} for the given "request-id" header value.
8282
*/
8383
public ExchangeResult claimRequest(String requestId) {
84-
ExchangeResult result = this.exchanges.get(requestId);
84+
ExchangeResult result = this.exchanges.remove(requestId);
8585
Assert.notNull(result, "No match for " + WebTestClient.WEBTESTCLIENT_REQUEST_ID + "=" + requestId);
8686
return result;
8787
}

0 commit comments

Comments
 (0)