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