Skip to content

Commit e70cfcb

Browse files
authored
no check error code (Azure#18011)
1 parent b55a3e0 commit e70cfcb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormTrainingClient/FormTrainingClientLiveTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,7 @@ public async Task StartCopyModelFailsWithWrongRegion()
526526

527527
var operation = await sourceClient.StartCopyModelAsync(trainedModel.ModelId, targetAuth);
528528

529-
RequestFailedException ex = Assert.ThrowsAsync<RequestFailedException>(async () => await operation.WaitForCompletionAsync(PollingInterval));
530-
Assert.AreEqual("AuthorizationError", ex.ErrorCode);
529+
Assert.ThrowsAsync<RequestFailedException>(async () => await operation.WaitForCompletionAsync(PollingInterval));
531530
}
532531

533532
[Test]

0 commit comments

Comments
 (0)