Fix MGLOfflineStorageTests (#428)
This commit is contained in:
@@ -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);
|
||||
}];
|
||||
|
||||
@@ -31,8 +31,7 @@
|
||||
"testTargets" : [
|
||||
{
|
||||
"skippedTests" : [
|
||||
"MGLMapSnapshotterTests\/testLocalGlyphRendering",
|
||||
"MGLOfflineStorageTests\/testAddPackForBounds"
|
||||
"MGLMapSnapshotterTests\/testLocalGlyphRendering"
|
||||
],
|
||||
"target" : {
|
||||
"containerPath" : "container:ios.xcodeproj",
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
"testTargets" : [
|
||||
{
|
||||
"skippedTests" : [
|
||||
"MGLMapSnapshotterTests\/testLocalGlyphRendering",
|
||||
"MGLOfflineStorageTests\/testAddPackForBounds"
|
||||
"MGLMapSnapshotterTests\/testLocalGlyphRendering"
|
||||
],
|
||||
"target" : {
|
||||
"containerPath" : "container:macos.xcodeproj",
|
||||
|
||||
Reference in New Issue
Block a user