[ios] Bump more test timeouts for Xcode 10 sluggishness

This commit is contained in:
Jason Wray
2018-09-26 13:19:27 -07:00
committed by Jason Wray
parent 20b33ad5da
commit 1ce31af289
4 changed files with 7 additions and 8 deletions

View File

@@ -43,7 +43,7 @@
[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)testAddFileContent {
// Valid database
{
NSURL *resourceURL = [NSURL fileURLWithPath:[[NSBundle bundleForClass:[self class]] pathForResource:@"barcelona" ofType:@"db"]];

View File

@@ -33,7 +33,7 @@
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];
}
}

View File

@@ -8,7 +8,7 @@
#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 @@
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;

View File

@@ -37,7 +37,7 @@
XCTAssertThrowsSpecificNamed((layer.circleColor = interpExpression), NSException, NSInvalidArgumentException);
[self.mapView.style addLayer:layer];
[self waitForMapViewToBeRenderedWithTimeout:1.0];
[self waitForMapViewToBeRenderedWithTimeout:5];
}
- (void)testForSteppingExpressionRenderCrashWithEmptyStops {
@@ -55,7 +55,7 @@
XCTAssertThrowsSpecificNamed((layer.circleColor = steppingExpression), NSException, NSInvalidArgumentException);
[self.mapView.style addLayer:layer];
[self waitForMapViewToBeRenderedWithTimeout:1.0];
[self waitForMapViewToBeRenderedWithTimeout:5];
}
@end