Updated error message in object detector tests

This commit is contained in:
Prianka Liz Kariat 2023-05-04 01:01:47 +05:30
parent 7e53fdc1b3
commit 4558486459

View File

@ -459,16 +459,16 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
options.runningMode = runningModesToTest[i]; options.runningMode = runningModesToTest[i];
options.objectDetectorDelegate = self; options.objectDetectorDelegate = self;
[self assertCreateObjectDetectorWithOptions:options [self
failsWithExpectedError: assertCreateObjectDetectorWithOptions:options
[NSError errorWithDomain:kExpectedErrorDomain failsWithExpectedError:
code:MPPTasksErrorCodeInvalidArgumentError [NSError errorWithDomain:kExpectedErrorDomain
userInfo:@{ code:MPPTasksErrorCodeInvalidArgumentError
NSLocalizedDescriptionKey : userInfo:@{
@"The vision task is in image or video mode. " NSLocalizedDescriptionKey :
@"The delegate must not be" @"The vision task is in image or video mode. The "
@"set in the task's options." @"delegate must not be set in the task's options."
}]]; }]];
} }
} }