Skip to content

Commit e89733d

Browse files
committed
Fix tests
1 parent 7acd456 commit e89733d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/PINCacheTests.m

+6-6
Original file line numberDiff line numberDiff line change
@@ -735,13 +735,13 @@ - (void)testAgeLimit
735735
}];
736736

737737
dispatch_group_enter(group);
738-
[self.cache.diskCache objectForKeyAsync:key1 completion:^(id<PINCaching> cache, NSString *key, id<NSCoding> object) {
738+
[self.cache.diskCache objectForKeyAsync:key1 completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
739739
diskObj1 = object;
740740
dispatch_group_leave(group);
741741
}];
742742

743743
dispatch_group_enter(group);
744-
[self.cache.diskCache objectForKeyAsync:key2 completion:^(id<PINCaching> cache, NSString *key, id<NSCoding> object) {
744+
[self.cache.diskCache objectForKeyAsync:key2 completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
745745
diskObj2 = object;
746746
dispatch_group_leave(group);
747747
}];
@@ -778,13 +778,13 @@ - (void)testAgeLimit
778778
}];
779779

780780
dispatch_group_enter(group);
781-
[self.cache.diskCache objectForKeyAsync:key1 completion:^(id<PINCaching> cache, NSString *key, id<NSCoding> object) {
781+
[self.cache.diskCache objectForKeyAsync:key1 completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
782782
diskObj1 = object;
783783
dispatch_group_leave(group);
784784
}];
785785

786786
dispatch_group_enter(group);
787-
[self.cache.diskCache objectForKeyAsync:key2 completion:^(PINDiskCache *cache, NSString *key, id<NSCoding> object) {
787+
[self.cache.diskCache objectForKeyAsync:key2 completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
788788
diskObj2 = object;
789789
dispatch_group_leave(group);
790790
}];
@@ -909,7 +909,7 @@ - (void)_testTTLCacheObjectAccess {
909909
}];
910910

911911
dispatch_group_enter(group);
912-
[self.cache.diskCache objectForKeyAsync:key completion:^(id<PINCaching> cache, NSString *key, id<NSCoding> object) {
912+
[self.cache.diskCache objectForKeyAsync:key completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
913913
diskObj = object;
914914
dispatch_group_leave(group);
915915
}];
@@ -933,7 +933,7 @@ - (void)_testTTLCacheObjectAccess {
933933
}];
934934

935935
dispatch_group_enter(group);
936-
[self.cache.diskCache objectForKeyAsync:key completion:^(id<PINCaching> cache, NSString *key, id<NSCoding> object) {
936+
[self.cache.diskCache objectForKeyAsync:key completion:^(PINDiskCache * _Nonnull cache, NSString * _Nonnull key, id<NSCoding> _Nullable object) {
937937
diskObj = object;
938938
dispatch_group_leave(group);
939939
}];

0 commit comments

Comments
 (0)