@@ -289,10 +289,10 @@ - (void)testSentryBinaryImageCacheIntegration
289289 // by calling start, SentryBinaryImageCache will register a callback with
290290 // `SentryCrashBinaryImageCache` that should be called for every image already cached.
291291 NSMutableArray <NSString *> *paths = [NSMutableArray new ];
292- [imageCache.cache enumerateObjectsUsingBlock: ^(SentryBinaryImageInfo * _Nonnull obj, NSUInteger __unused idx, BOOL * _Nonnull __unused stop) {
293- [paths addObject: obj.name];
294- }];
295- XCTAssertEqual ( 5 , imageCache.cache .count , @" Cache should start with 5 images but contained %@ " , paths);
292+ [imageCache.cache enumerateObjectsUsingBlock: ^(SentryBinaryImageInfo *_Nonnull obj,
293+ NSUInteger __unused idx, BOOL *_Nonnull __unused stop) { [paths addObject: obj.name]; } ];
294+ XCTAssertEqual (
295+ 5 , imageCache.cache .count , @" Cache should start with 5 images but contained %@ " , paths);
296296
297297 addBinaryImage ([mach_headers_test_cache[5 ] pointerValue ], 0 );
298298 XCTAssertEqual (6 , imageCache.cache .count );
@@ -311,10 +311,11 @@ - (void)assertBinaryImageCacheLength:(int)expected
311311 int counter = 0 ;
312312 sentrycrashbic_iterateOverImages (countNumberOfImagesInCache, &counter);
313313 NSMutableArray <NSString *> *paths = [NSMutableArray new ];
314- [SentryDependencyContainer.sharedInstance.binaryImageCache.cache enumerateObjectsUsingBlock: ^(SentryBinaryImageInfo * _Nonnull obj, NSUInteger __unused idx, BOOL * _Nonnull __unused stop) {
315- [paths addObject: obj.name];
316- }];
317- XCTAssertEqual (counter, expected, @" Cache should have %d images but contained %@ " , expected, paths);
314+ [SentryDependencyContainer.sharedInstance.binaryImageCache.cache
315+ enumerateObjectsUsingBlock: ^(SentryBinaryImageInfo *_Nonnull obj, NSUInteger __unused idx,
316+ BOOL *_Nonnull __unused stop) { [paths addObject: obj.name]; }];
317+ XCTAssertEqual (
318+ counter, expected, @" Cache should have %d images but contained %@ " , expected, paths);
318319}
319320
320321- (void )assertCachedBinaryImages
0 commit comments