Skip to content

Commit 33a701d

Browse files
committed
address another flake
1 parent 6f16835 commit 33a701d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Crashlytics/UnitTests/FIRCLSReportUploaderTests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ - (void)runUploadPackagedReportWithUrgency:(BOOL)urgent {
284284
asUrgent:urgent];
285285

286286
XCTAssertNotNil(self.mockDataTransport.sendDataEvent_event);
287+
288+
// Wait a little bit for the file to be removed.
289+
[NSRunLoop.currentRunLoop runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
287290
XCTAssertEqualObjects(self.fileManager.removedItemAtPath_path, [self packagePath]);
288291
}
289292

0 commit comments

Comments
 (0)