summaryrefslogtreecommitdiff
path: root/platform/darwin
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-11-29 13:36:55 -0800
committerMinh Nguyễn <mxn@1ec5.org>2016-11-29 13:36:55 -0800
commit336d48df4852021f4b51a15220d8ab976a79a59e (patch)
tree7aea74a045deee3f85f4a210a79d80321589d607 /platform/darwin
parentd830c48e4a6d656284df930a5fda03ba8f1521cc (diff)
downloadqtlocation-mapboxgl-336d48df4852021f4b51a15220d8ab976a79a59e.tar.gz
[ios, macos] Fixed spurious offline storage test failure
Even if the expectation is immediately fulfilled, we still have to wait for it to be fulfilled, because the expectation only gets unregistered after waiting. The zombie expectation was fulfilling a stricter expectation in a test method.
Diffstat (limited to 'platform/darwin')
-rw-r--r--platform/darwin/test/MGLOfflineStorageTests.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/darwin/test/MGLOfflineStorageTests.m b/platform/darwin/test/MGLOfflineStorageTests.m
index cd13a9262e..07540b5645 100644
--- a/platform/darwin/test/MGLOfflineStorageTests.m
+++ b/platform/darwin/test/MGLOfflineStorageTests.m
@@ -19,6 +19,7 @@
}];
if ([MGLOfflineStorage sharedOfflineStorage].packs) {
[expectation fulfill];
+ [self waitForExpectationsWithTimeout:0 handler:nil];
} else {
[self waitForExpectationsWithTimeout:2 handler:nil];
}