Updated time out for object detector
This commit is contained in:
parent
08282d9fd7
commit
3df4f7db64
|
@ -664,7 +664,9 @@ static const float scoreDifferenceTolerance = 0.02f;
|
||||||
@"INVALID_ARGUMENT: Input timestamp must be monotonically increasing."
|
@"INVALID_ARGUMENT: Input timestamp must be monotonically increasing."
|
||||||
}];
|
}];
|
||||||
AssertEqualErrors(error, expectedError);
|
AssertEqualErrors(error, expectedError);
|
||||||
[self waitForExpectations:@[ expectation ] timeout:1.0];
|
|
||||||
|
NSTimeInterval timeout = 0.5f;
|
||||||
|
[self waitForExpectations:@[ expectation ] timeout:timeout];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)testDetectWithLiveStreamModeSucceeds {
|
- (void)testDetectWithLiveStreamModeSucceeds {
|
||||||
|
@ -715,7 +717,8 @@ static const float scoreDifferenceTolerance = 0.02f;
|
||||||
XCTAssertTrue([objectDetector detectAsyncInImage:image timestampInMilliseconds:i error:nil]);
|
XCTAssertTrue([objectDetector detectAsyncInImage:image timestampInMilliseconds:i error:nil]);
|
||||||
}
|
}
|
||||||
|
|
||||||
[self waitForExpectations:@[ expectation ] timeout:0.5f];
|
NSTimeInterval timeout = 0.5f;
|
||||||
|
[self waitForExpectations:@[ expectation ] timeout:timeout];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user