[ios] Bump more test timeouts for Xcode 10 sluggishness
This commit is contained in:
@@ -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"]];
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user