diff --git a/platform/ios/platform/ios/Integration Tests/MGLMapViewPendingBlockTests.m b/platform/ios/platform/ios/Integration Tests/MGLMapViewPendingBlockTests.m index 2f3fdcc38..2cdc88226 100644 --- a/platform/ios/platform/ios/Integration Tests/MGLMapViewPendingBlockTests.m +++ b/platform/ios/platform/ios/Integration Tests/MGLMapViewPendingBlockTests.m @@ -3,7 +3,7 @@ @interface MGLMapView (MGLMapViewPendingBlockTests) @property (nonatomic) NSMutableArray *pendingCompletionBlocks; -- (void)pauseRendering:(__unused NSNotification *)notification; +- (void)stopDisplayLink; @end @interface MGLMapViewPendingBlockTests : MGLMapViewIntegrationTest @@ -256,9 +256,9 @@ MGLTestAssert(strongSelf, !strongSelf.completionHandlerCalled); - // Pause rendering, stopping display link - [strongSelf.mapView pauseRendering:nil]; - + // Stopping display link, should trigger the pending blocks + [strongSelf.mapView stopDisplayLink]; + MGLTestAssert(strongSelf, strongSelf.completionHandlerCalled); };