Skip to content

Commit 8779479

Browse files
GDTCORFlatFileStorageTest size limit tests: use timeout proportional to the number of events (#6537)
1 parent e3625ca commit 8779479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GoogleDataTransport/GDTCORTests/Unit/GDTCORFlatFileStorageTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ - (void)testStoreEvent_WhenSizeLimitReached_ThenNewEventIsSkipped {
11701170
onComplete:^{
11711171
[removeBatchExpectation fulfill];
11721172
}];
1173-
[self waitForExpectations:@[ removeBatchExpectation ] timeout:5];
1173+
[self waitForExpectations:@[ removeBatchExpectation ] timeout:generatedEvents.count * 0.1];
11741174

11751175
// 6. Try to add another event.
11761176
XCTestExpectation *storeExpectation2 = [self expectationWithDescription:@"storeExpectation2"];

0 commit comments

Comments
 (0)