Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Bump more test timeouts for Xcode 10 sluggishness
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed Sep 26, 2018
1 parent 20b33ad commit 1ce31af
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions platform/darwin/test/MGLOfflineStorageTests.mm
Expand Up @@ -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.");
Expand Down Expand Up @@ -283,8 +283,7 @@ - (void)testResourceTransform {
}

- (void)testAddFileContent {



// Valid database
{
NSURL *resourceURL = [NSURL fileURLWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"barcelona" ofType:@"db"]];
Expand Down
2 changes: 1 addition & 1 deletion platform/darwin/test/MGLStyleTests.mm
Expand Up @@ -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];
}
}

Expand Down
4 changes: 2 additions & 2 deletions platform/ios/Integration Tests/MBGLIntegrationTests.m
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down
Expand Up @@ -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 {
Expand All @@ -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

0 comments on commit 1ce31af

Please sign in to comment.