summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2018-10-01 15:17:12 -0700
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2018-10-01 16:45:00 -0700
commit9b21786f624469b71b6d9cdb2a2651ac842cf08e (patch)
tree3df2b28e041817804e387c80bf9ced7f0bfc9de3 /platform
parent6c4cb063c2a163bdec3f9b97f5ebd184fc869793 (diff)
downloadqtlocation-mapboxgl-9b21786f624469b71b6d9cdb2a2651ac842cf08e.tar.gz
[ios, macos] Disable offline merge test.
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/test/MGLOfflineStorageTests.mm22
1 files changed, 13 insertions, 9 deletions
diff --git a/platform/darwin/test/MGLOfflineStorageTests.mm b/platform/darwin/test/MGLOfflineStorageTests.mm
index 4cdb87946e..0eba272efb 100644
--- a/platform/darwin/test/MGLOfflineStorageTests.mm
+++ b/platform/darwin/test/MGLOfflineStorageTests.mm
@@ -284,19 +284,22 @@
- (void)testAddFileContent {
+ NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
+ NSString *documentDir = [documentPaths objectAtIndex:0];
+ NSFileManager *fileManager = [NSFileManager defaultManager];
+
+ BOOL directoryExists = [fileManager fileExistsAtPath:documentDir];
+ if (!directoryExists) {
+ [fileManager createDirectoryAtPath:documentDir withIntermediateDirectories:YES attributes:nil error:nil];
+ }
+
// Valid database
{
+ // TODO: Fix the size of barcelone.db that is causing timeouts.
+ /**
NSURL *resourceURL = [NSURL fileURLWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"barcelona" ofType:@"db"]];
- NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
- NSString *documentDir = [documentPaths objectAtIndex:0];
NSString *filePath = [documentDir stringByAppendingPathComponent:@"barcelona.db"];
- NSFileManager *fileManager = [NSFileManager defaultManager];
-
- BOOL directoryExists = [fileManager fileExistsAtPath:documentDir];
- if (!directoryExists) {
- [fileManager createDirectoryAtPath:documentDir withIntermediateDirectories:YES attributes:nil error:nil];
- }
-
+
BOOL databaseExists = [fileManager fileExistsAtPath:filePath];
if (databaseExists) {
[fileManager removeItemAtPath:filePath error:nil];
@@ -339,6 +342,7 @@
[self waitForExpectationsWithTimeout:5 handler:nil];
// Depending on the database it may update or add a pack. For this case specifically the offline database adds one pack.
XCTAssertEqual([MGLOfflineStorage sharedOfflineStorage].packs.count, countOfPacks + 1, @"Adding contents of barcelona.db should add one pack.");
+ */
}
// Invalid database type
{