Updated wait time for object detector tests

This commit is contained in:
Prianka Liz Kariat 2023-05-04 19:53:06 +05:30
parent 8ec0724b65
commit 00712d727e

View File

@ -660,7 +660,7 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
@"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]; [self waitForExpectations:@[ expectation ] timeout:0.5f];
} }
- (void)testDetectWithLiveStreamModeSucceeds { - (void)testDetectWithLiveStreamModeSucceeds {
@ -707,7 +707,7 @@ static NSString *const kLiveStreamTestsDictExpectationKey = @"expectation";
XCTAssertTrue([objectDetector detectAsyncInImage:image timestampInMilliseconds:i error:nil]); XCTAssertTrue([objectDetector detectAsyncInImage:image timestampInMilliseconds:i error:nil]);
} }
[self waitForExpectations:@[ expectation ] timeout:0.5]; [self waitForExpectations:@[ expectation ] timeout:0.5f];
} }
#pragma mark MPPObjectDetectorLiveStreamDelegate Methods #pragma mark MPPObjectDetectorLiveStreamDelegate Methods