Fixed testSetCenterCoordinatePauseRendering broken in PR https://github.com/maplibre/maplibre-gl-native/pull/68 (#88)

This commit is contained in:
Jukka Hietanen
2021-05-21 01:37:28 +03:00
committed by GitHub
parent 75d915eff1
commit 1ebaff3378

View File

@@ -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);
};