summaryrefslogtreecommitdiff
path: root/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-08-21 14:23:33 -0400
committerGitHub <noreply@github.com>2019-08-21 14:23:33 -0400
commitc3cd9002f0f59ff6955c75410aaae62fb782935d (patch)
tree5e2782dcb63e9fb9c897410a67dd50c73740a553 /platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm
parentba2d80441ed825ab6725857d2fcb37e1a55ad76b (diff)
downloadqtlocation-mapboxgl-c3cd9002f0f59ff6955c75410aaae62fb782935d.tar.gz
[ios] Fix integration tests failing on iOS 9 (due to UIWindow deallocation), and random fails waiting for rendering. (#15433)
Diffstat (limited to 'platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm')
-rw-r--r--platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm b/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm
index eb3c85e30d..1b3603419e 100644
--- a/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm
+++ b/platform/ios/Integration Tests/Annotation Tests/MGLAnnotationViewIntegrationTests.mm
@@ -801,6 +801,7 @@ static const CGPoint kAnnotationRelativeScale = { 0.05f, 0.125f };
- (void)waitForCollisionDetectionToRun {
XCTAssertNil(self.renderFinishedExpectation, @"Incorrect test setup");
+ [self.mapView setNeedsRerender];
self.renderFinishedExpectation = [self expectationWithDescription:@"Map view should be rendered"];
XCTestExpectation *timerExpired = [self expectationWithDescription:@"Timer expires"];