Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Aug 22, 2024
1 parent 6c2d170 commit 89e921a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void loggingInterceptorDoesNotDrainRequestBodyForMarkableStreams() throws Except
requestInformation.setResponseHandler(nativeResponseHandler);

var mockEntity = creatMockEntity();
requestAdapter.send(requestInformation, null, (node) -> mockEntity);
requestAdapter.send(requestInformation, null, node -> mockEntity);
var nativeResponse = (Response) nativeResponseHandler.getValue();
assertNotNull(nativeResponse);
assertEquals(requestBodyJson, nativeResponse.body().source().readUtf8());
Expand Down Expand Up @@ -528,7 +528,7 @@ void loggingInterceptorDoesNotDrainRequestBodyForNonMarkableStreams() throws Exc
try (FileInputStream content = new FileInputStream(testFile)) {
requestInformation.setStreamContent(content, "application/octet-stream");
var mockEntity = creatMockEntity();
requestAdapter.send(requestInformation, null, (node) -> mockEntity);
requestAdapter.send(requestInformation, null, node -> mockEntity);
var nativeResponse = (Response) nativeResponseHandler.getValue();
assertNotNull(nativeResponse);
assertEquals(contentLength, nativeResponse.body().source().readByteArray().length);
Expand Down

0 comments on commit 89e921a

Please sign in to comment.