[FormRecognizer] Tests: FormTrainingClient live tests not deleting trained models #12140
Labels
Client
This issue points to a problem in the data-plane of the library.
Cognitive - Form Recognizer
Cognitive Services
test-reliability
Issue that causes tests to be unreliable
Milestone
Description
Tests in
FormTrainingClientLiveTests
are not deleting the models trained for testing upon completion. TheDisposableTrainedModel
class is used for this purpose inFormRecognizerClientLiveTests
.Edit: some tests in
OperationsLiveTests
have the same issue.Should we do the same in the
FormTrainingClient
live tests? Or would it be better to NOT wrap theStartTraining
call in a separate class, making it an explicit call and relying ontry/finally
blocks to delete the models? The later would make sense in methods whose sole objective is testing theStartTraining
method, while the former would be used in methods where training is only one of the steps of the test.The text was updated successfully, but these errors were encountered: