Skip to content

Commit b3be77b

Browse files
committed
review
1 parent dbba8ce commit b3be77b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Crashlytics/UnitTests/FIRCLSSettingsTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ - (void)cacheSettingsWithGoogleAppID:(NSString *)googleAppID
137137

138138
[self.settings cacheSettingsWithGoogleAppID:googleAppID currentTimestamp:currentTimestamp];
139139

140-
[self waitForExpectations:@[ expectation ] timeout:10.0];
140+
[self waitForExpectations:@[ expectation ] timeout:4.0];
141141
}
142142

143143
- (void)reloadFromCacheWithGoogleAppID:(NSString *)googleAppID
@@ -153,7 +153,7 @@ - (void)reloadFromCacheWithGoogleAppID:(NSString *)googleAppID
153153

154154
[self.settings reloadFromCacheWithGoogleAppID:googleAppID currentTimestamp:currentTimestamp];
155155

156-
[self waitForExpectations:@[ expectation ] timeout:20.0];
156+
[self waitForExpectations:@[ expectation ] timeout:6.0];
157157
}
158158

159159
- (void)testActivatedSettingsCached {

Crashlytics/UnitTests/Mocks/FIRCLSMockFileManager.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ - (instancetype)init {
3939
- (BOOL)removeItemAtPath:(NSString *)path {
4040
@synchronized(self) {
4141
[self.fileSystemDict removeObjectForKey:path];
42+
self.removeCount += 1;
4243
}
4344

44-
self.removeCount += 1;
45-
4645
[[NSNotificationCenter defaultCenter]
4746
postNotificationName:FIRCLSMockFileManagerDidRemoveItemNotification
4847
object:self];

0 commit comments

Comments
 (0)