summaryrefslogtreecommitdiff
path: root/platform/ios/Integration Tests/MGLCameraTransitionTests.mm
diff options
context:
space:
mode:
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);