Fix MGLOfflineStorageTests (#428)

This commit is contained in:
Birk Skyum
2022-09-07 19:16:55 +02:00
committed by GitHub
parent b5f5e425a6
commit 2cae1ecc41
3 changed files with 5 additions and 6 deletions

View File

@@ -144,11 +144,12 @@ private:
MGLOfflineStorage *sharedOfflineStorage = [MGLOfflineStorage sharedOfflineStorage];
__weak MGLOfflinePack *weakSelf = self;
[sharedOfflineStorage getPacksWithCompletionHandler:^(NSArray<MGLOfflinePack *> *packs, __unused NSError * _Nullable error) {
MGLOfflinePack *strongSelf = weakSelf;
for (MGLOfflinePack *pack in packs) {
if (pack.mbglOfflineRegion->getID() == regionID) {
weakSelf.mbglOfflineRegion = pack.mbglOfflineRegion;
break;
strongSelf.mbglOfflineRegion = pack.mbglOfflineRegion;
}
[pack invalidate];
}
completion(error);
}];

View File

@@ -31,8 +31,7 @@
"testTargets" : [
{
"skippedTests" : [
"MGLMapSnapshotterTests\/testLocalGlyphRendering",
"MGLOfflineStorageTests\/testAddPackForBounds"
"MGLMapSnapshotterTests\/testLocalGlyphRendering"
],
"target" : {
"containerPath" : "container:ios.xcodeproj",

View File

@@ -21,8 +21,7 @@
"testTargets" : [
{
"skippedTests" : [
"MGLMapSnapshotterTests\/testLocalGlyphRendering",
"MGLOfflineStorageTests\/testAddPackForBounds"
"MGLMapSnapshotterTests\/testLocalGlyphRendering"
],
"target" : {
"containerPath" : "container:macos.xcodeproj",