Skip to content

Commit

Permalink
GDTCORFlatFileStorageTest size limit tests: use timeout proportional …
Browse files Browse the repository at this point in the history
…to the number of events (#6537)
  • Loading branch information
maksymmalyhin committed Sep 23, 2020
1 parent e3625ca commit 8779479
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ - (void)testStoreEvent_WhenSizeLimitReached_ThenNewEventIsSkipped {
onComplete:^{
[removeBatchExpectation fulfill];
}];
[self waitForExpectations:@[ removeBatchExpectation ] timeout:5];
[self waitForExpectations:@[ removeBatchExpectation ] timeout:generatedEvents.count * 0.1];

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

0 comments on commit 8779479

Please sign in to comment.