summaryrefslogtreecommitdiff
path: root/platform/darwin/test/MGLOfflineStorageTests.mm
diff options
context:
space:
mode:
authorjmkiley <jordan.kiley@mapbox.com>2019-07-12 15:09:08 -0700
committerjmkiley <jordan.kiley@mapbox.com>2019-07-12 15:09:08 -0700
commit89dd08408b8da71ce1a399d645b64495fbef5ec2 (patch)
tree4509ea50a9dc83c54babac415f0fd1859c89da85 /platform/darwin/test/MGLOfflineStorageTests.mm
parentaa39bc27c21e1fa69464d5a7a914a4d76ed0af4b (diff)
downloadqtlocation-mapboxgl-89dd08408b8da71ce1a399d645b64495fbef5ec2.tar.gz
[ios] fix inconsistent completionhandler
Diffstat (limited to 'platform/darwin/test/MGLOfflineStorageTests.mm')
-rw-r--r--platform/darwin/test/MGLOfflineStorageTests.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/darwin/test/MGLOfflineStorageTests.mm b/platform/darwin/test/MGLOfflineStorageTests.mm
index b300b0c682..4bb9bc6776 100644
--- a/platform/darwin/test/MGLOfflineStorageTests.mm
+++ b/platform/darwin/test/MGLOfflineStorageTests.mm
@@ -228,17 +228,17 @@
- (void)testSetMaximumAmbientCache {
XCTestExpectation *expectation = [self expectationWithDescription:@"Expect maximum cache size to be raised without an error."];
- [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:500000 withCallback:^(NSError * _Nullable error) {
+ [[MGLOfflineStorage sharedOfflineStorage] setMaximumAmbientCacheSize:0 withCompletionHandler:^(NSError * _Nullable error) {
XCTAssertNil(error);
[expectation fulfill];
}];
- [self waitForExpectationsWithTimeout:20 handler:nil];
+ [self waitForExpectationsWithTimeout:30 handler:nil];
}
- (void)testInvalidateAmbientCache {
XCTestExpectation *expectation = [self expectationWithDescription:@"Expect cache to be invalidated without an error."];
- [[MGLOfflineStorage sharedOfflineStorage] invalidateAmbientCacheWithCompletion:^(NSError * _Nullable error) {
+ [[MGLOfflineStorage sharedOfflineStorage] invalidateAmbientCacheWithCompletionHandler:^(NSError * _Nullable error) {
XCTAssertNil(error);
[expectation fulfill];
}];
@@ -247,7 +247,7 @@
- (void)testClearCache {
XCTestExpectation *expectation = [self expectationWithDescription:@"Expect cache to be cleared without an error."];
- [[MGLOfflineStorage sharedOfflineStorage] clearAmbientCacheWithCompletion:^(NSError * _Nullable error) {
+ [[MGLOfflineStorage sharedOfflineStorage] clearAmbientCacheWithCompletionHandler:^(NSError * _Nullable error) {
XCTAssertNil(error);
[expectation fulfill];
}];