Skip to content

Commit d1f51ed

Browse files
committed
Update constant
1 parent c6d2fe6 commit d1f51ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal4j-sdk/src/test/java/com/microsoft/aad/msal4j/ManagedIdentityTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class ErrorHandlingTests extends BaseManagedIdentityTest {
469469
void managedIdentityTest_SuccessfulResponse_WithInvalidJson(ManagedIdentitySourceType source, String endpoint, String resource) throws Exception {
470470
setUpCommonTest(source, endpoint, ManagedIdentityId.systemAssigned());
471471

472-
when(httpClientMock.send(expectedRequest(source, resource))).thenReturn(expectedResponse(200, ManagedIdentityTestConstants.SUCCESSFUL_RESPONSE_INVALID_JSON));
472+
when(httpClientMock.send(expectedRequest(source, resource))).thenReturn(expectedResponse(200, ManagedIdentityTestConstants.RESPONSE_MALFORMED_JSON));
473473

474474
assertMsalServiceException(acquireTokenCommon(resource), source, MsalError.MANAGED_IDENTITY_RESPONSE_PARSE_FAILURE);
475475
}

0 commit comments

Comments
 (0)