From 1ebaff3378d7383d2a9e67c1420ef3b0fc45915a Mon Sep 17 00:00:00 2001 From: Jukka Hietanen Date: Fri, 21 May 2021 01:37:28 +0300 Subject: [PATCH] Fixed testSetCenterCoordinatePauseRendering broken in PR https://github.com/maplibre/maplibre-gl-native/pull/68 (#88) --- .../ios/Integration Tests/MGLMapViewPendingBlockTests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); };