Updated wait time for object detector tests
This commit is contained in:
		
							parent
							
								
									8ec0724b65
								
							
						
					
					
						commit
						00712d727e
					
				|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user