Skip to content

Commit e1b60df

Browse files
committed
Bump timeouts for slow GH actions?
1 parent cc07493 commit e1b60df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/SPTPersistentCacheGarbageCollectorTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ - (void)testGarbageCollectorEnqueue
8181
dataCacheForUnitTests.testExpectation = expectation;
8282
[self.garbageCollector enqueueGarbageCollection:nil];
8383

84-
[self waitForExpectationsWithTimeout:1.0 handler:^(NSError * _Nullable error) {
84+
[self waitForExpectationsWithTimeout:10.0 handler:^(NSError * _Nullable error) {
8585
XCTAssertTrue(dataCacheForUnitTests.wasRunRegularGCCalled);
8686
XCTAssertTrue(dataCacheForUnitTests.wasPruneBySizeCalled);
8787
XCTAssertFalse(dataCacheForUnitTests.wasCalledFromIncorrectQueue);

Tests/SPTPersistentCacheTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
static const NSUInteger kTTL4 = 86400;
6565
static const NSUInteger kCorruptedFileSize = 15;
6666
static const NSUInteger kTestEpochTime = 1488;
67-
static const NSTimeInterval kDefaultWaitTime = 6.0; //sec
67+
static const NSTimeInterval kDefaultWaitTime = 30.0; //sec
6868

6969
static const StoreParamsType kParams[] = {
7070
{0, YES, NO, -1},

0 commit comments

Comments
 (0)