Skip to content

Commit 802ed12

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
fix: Ensure 3XX responses without location header do not throw
1 parent 158f3c6 commit 802ed12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http/okHttp/src/test/java/com/microsoft/kiota/http/OkHttpRequestAdapterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ void loggingInterceptorDoesNotDrainRequestBodyForNonMarkableStreams() throws Exc
530530
var mockEntity = creatMockEntity();
531531
requestAdapter.send(requestInformation, null, node -> mockEntity);
532532
var nativeResponse = (Response) nativeResponseHandler.getValue();
533-
assertNull(nativeResponse);
533+
assertNotNull(nativeResponse);
534534
assertEquals(contentLength, nativeResponse.body().source().readByteArray().length);
535535
}
536536
}

0 commit comments

Comments
 (0)