Updated error message in object detector tests
This commit is contained in:
parent
7e53fdc1b3
commit
4558486459
|
@ -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."
|
||||||
}]];
|
}]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user