Skip to content

Commit 7f3c935

Browse files
authored
[Infra] Attempt to reduce Crashlytics testing flake (#15183)
1 parent b550a06 commit 7f3c935

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Crashlytics/UnitTests/Mocks/FIRCLSMockFileManager.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ - (BOOL)removeItemAtPath:(NSString *)path {
4141
// If we set up the expectation, and we went over the expected count or removes, fulfill the
4242
// expectation
4343
if (self.removeExpectation && self.removeCount >= self.expectedRemoveCount) {
44-
[self.removeExpectation fulfill];
44+
dispatch_async(dispatch_get_main_queue(), ^{
45+
[self.removeExpectation fulfill];
46+
});
4547
}
4648

4749
return YES;

0 commit comments

Comments
 (0)