Updated time out for image classifier async tests

This commit is contained in:
Prianka Liz Kariat 2023-05-04 19:59:39 +05:30
parent 33ae23c53a
commit 08282d9fd7
2 changed files with 5 additions and 3 deletions

View File

@ -652,7 +652,8 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
}];
AssertEqualErrors(error, expectedError);
[self waitForExpectations:@[ expectation ] timeout:0.5f];
NSTimeInterval timeout = 0.5f;
[self waitForExpectations:@[ expectation ] timeout:timeout];
}
- (void)testClassifyWithLiveStreamModeSucceeds {
@ -699,7 +700,8 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
XCTAssertTrue([imageClassifier classifyAsyncImage:image timestampInMilliseconds:i error:nil]);
}
[self waitForExpectations:@[ expectation ] timeout:0.5f];
NSTimeInterval timeout = 0.5f;
[self waitForExpectations:@[ expectation ] timeout:timeout];
}
- (void)imageClassifier:(MPPImageClassifier *)imageClassifier

View File

@ -715,7 +715,7 @@ static const float scoreDifferenceTolerance = 0.02f;
XCTAssertTrue([objectDetector detectAsyncInImage:image timestampInMilliseconds:i error:nil]);
}
[self waitForExpectations:@[ expectation ] timeout:0.5];
[self waitForExpectations:@[ expectation ] timeout:0.5f];
}
@end