summaryrefslogtreecommitdiff
path: root/platform/ios/Integration Tests/MGLCameraTransitionTests.mm
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@gmail.com>2018-06-18 14:24:14 -0400
committerGitHub <noreply@github.com>2018-06-18 14:24:14 -0400
commit87143a355d12fa4bfd3f094e187a8bab8148e7de (patch)
treeab04b44ab253a2b37eb4ce4abd9949aaa5f19807 /platform/ios/Integration Tests/MGLCameraTransitionTests.mm
parentc3857a9db861c0d435ad0ba3acd8564c82cc2283 (diff)
downloadqtlocation-mapboxgl-87143a355d12fa4bfd3f094e187a8bab8148e7de.tar.gz
[ios] Fix for integration tests not running on iOS 9. (#12145)
Diffstat (limited to 'platform/ios/Integration Tests/MGLCameraTransitionTests.mm')
-rw-r--r--platform/ios/Integration Tests/MGLCameraTransitionTests.mm6
1 files changed, 1 insertions, 5 deletions
diff --git a/platform/ios/Integration Tests/MGLCameraTransitionTests.mm b/platform/ios/Integration Tests/MGLCameraTransitionTests.mm
index 4a9db60982..0b28104c96 100644
--- a/platform/ios/Integration Tests/MGLCameraTransitionTests.mm
+++ b/platform/ios/Integration Tests/MGLCameraTransitionTests.mm
@@ -323,11 +323,7 @@
// Should take MGLAnimationDuration
[self.mapView setCenterCoordinate:target zoomLevel:zoomLevel animated:YES];
- // Run the loop, so the camera can fly to the new camera
- while (runloop) {
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]];
- }
- [self waitForExpectations:@[expectation] timeout:0.5];
+ [self waitForExpectations:@[expectation] timeout:2.0];
NSLog(@"setCenterCoordinate: %0.4fs", stop1 - stop0);
NSLog(@"flyToCamera: %0.4fs", stop2 - stop1);