diff --git a/platform/darwin/test/MGLOfflineStorageTests.mm b/platform/darwin/test/MGLOfflineStorageTests.mm index ad6e1a0570e..4cdb87946e4 100644 --- a/platform/darwin/test/MGLOfflineStorageTests.mm +++ b/platform/darwin/test/MGLOfflineStorageTests.mm @@ -43,7 +43,7 @@ - (void)setUp { [expectation fulfill]; [self waitForExpectationsWithTimeout:0 handler:nil]; } else { - [self waitForExpectationsWithTimeout:5 handler:nil]; + [self waitForExpectationsWithTimeout:10 handler:nil]; } XCTAssertNotNil([MGLOfflineStorage sharedOfflineStorage].packs, @"Shared offline storage object should have a non-nil collection of packs by this point."); @@ -283,8 +283,7 @@ - (void)testResourceTransform { } - (void)testAddFileContent { - - + // Valid database { NSURL *resourceURL = [NSURL fileURLWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"barcelona" ofType:@"db"]]; diff --git a/platform/darwin/test/MGLStyleTests.mm b/platform/darwin/test/MGLStyleTests.mm index ccab5961c91..d3172920964 100644 --- a/platform/darwin/test/MGLStyleTests.mm +++ b/platform/darwin/test/MGLStyleTests.mm @@ -33,7 +33,7 @@ - (void)setUp { self.mapView.delegate = self; if (!self.mapView.style) { _styleLoadingExpectation = [self expectationWithDescription:@"Map view should finish loading style."]; - [self waitForExpectationsWithTimeout:5 handler:nil]; + [self waitForExpectationsWithTimeout:10 handler:nil]; } } diff --git a/platform/ios/Integration Tests/MBGLIntegrationTests.m b/platform/ios/Integration Tests/MBGLIntegrationTests.m index aeff0ba6f38..849b6e3dc5d 100644 --- a/platform/ios/Integration Tests/MBGLIntegrationTests.m +++ b/platform/ios/Integration Tests/MBGLIntegrationTests.m @@ -8,7 +8,7 @@ @implementation MBGLIntegrationTests #pragma mark - Tests - (void)waitForMapViewToBeRendered { - [self waitForMapViewToBeRenderedWithTimeout:1]; + [self waitForMapViewToBeRenderedWithTimeout:5]; } // This test does not strictly need to be in this test file/target. Including here for convenience. @@ -186,7 +186,7 @@ - (void)testOpenGLLayerDoesNotLeakWhenMapViewDeallocs { XCTAssertNil(mapView2.style); self.styleLoadingExpectation = [self expectationWithDescription:@"Map view should finish loading style."]; - [self waitForExpectationsWithTimeout:5 handler:nil]; + [self waitForExpectationsWithTimeout:10 handler:nil]; MGLOpenGLStyleLayer *layer = [[MGLOpenGLStyleLayer alloc] initWithIdentifier:@"gl-layer"]; weakLayer = layer; diff --git a/platform/ios/Integration Tests/MGLStyleLayerIntegrationTests.m b/platform/ios/Integration Tests/MGLStyleLayerIntegrationTests.m index 015a58d2d2e..0cb4461c370 100644 --- a/platform/ios/Integration Tests/MGLStyleLayerIntegrationTests.m +++ b/platform/ios/Integration Tests/MGLStyleLayerIntegrationTests.m @@ -37,7 +37,7 @@ - (void)testForInterpolatingExpressionRenderCrashWithEmptyStops { XCTAssertThrowsSpecificNamed((layer.circleColor = interpExpression), NSException, NSInvalidArgumentException); [self.mapView.style addLayer:layer]; - [self waitForMapViewToBeRenderedWithTimeout:1.0]; + [self waitForMapViewToBeRenderedWithTimeout:5]; } - (void)testForSteppingExpressionRenderCrashWithEmptyStops { @@ -55,7 +55,7 @@ - (void)testForSteppingExpressionRenderCrashWithEmptyStops { XCTAssertThrowsSpecificNamed((layer.circleColor = steppingExpression), NSException, NSInvalidArgumentException); [self.mapView.style addLayer:layer]; - [self waitForMapViewToBeRenderedWithTimeout:1.0]; + [self waitForMapViewToBeRenderedWithTimeout:5]; } @end