Skip to content

Commit 4b738ba

Browse files
committed
fix test to expect new exception
1 parent 0ba49df commit 4b738ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/identity/azure-identity/src/test/java/com/azure/identity/ManagedIdentityCredentialTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void testCloudshellUserAssigned() {
157157
ManagedIdentityCredential credential
158158
= new ManagedIdentityCredentialBuilder().configuration(configuration).objectId(OBJECT_ID).build();
159159
StepVerifier.create(credential.getToken(request))
160-
.expectErrorMatches(t -> t instanceof CredentialUnavailableException)
160+
.expectErrorMatches(t -> t instanceof ClientAuthenticationException)
161161
.verify();
162162
}
163163

0 commit comments

Comments
 (0)