[tests, darwin] Standardize on 10 second timeout for map loading

5 second timeouts have been intermittently failing on CI.
This commit is contained in:
Chris Loer
2018-10-17 12:17:50 -07:00
committed by Chris Loer
parent 6086a6f0df
commit 8368bd4878
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ class MGLDocumentationExampleTests: XCTestCase, MGLMapViewDelegate {
mapView = MGLMapView(frame: CGRect(x: 0, y: 0, width: 256, height: 256), styleURL: MGLDocumentationExampleTests.styleURL)
mapView.delegate = self
styleLoadingExpectation = expectation(description: "Map view should finish loading style")
waitForExpectations(timeout: 5, handler: nil)
waitForExpectations(timeout: 10, handler: nil)
}
override func tearDown() {

View File

@@ -37,7 +37,7 @@ class MGLDocumentationGuideTests: XCTestCase, MGLMapViewDelegate {
mapView = MGLMapView(frame: CGRect(x: 0, y: 0, width: 256, height: 256), styleURL: styleURL)
mapView.delegate = self
styleLoadingExpectation = expectation(description: "Map view should finish loading style")
waitForExpectations(timeout: 5, handler: nil)
waitForExpectations(timeout: 10, handler: nil)
}
override func tearDown() {

View File

@@ -48,7 +48,7 @@
[window makeKeyAndVisible];
if (!self.mapView.style) {
[self waitForMapViewToFinishLoadingStyleWithTimeout:5];
[self waitForMapViewToFinishLoadingStyleWithTimeout:10];
}
}

View File

@@ -35,7 +35,7 @@
[self.superView addConstraints:[verticalConstraints arrayByAddingObjectsFromArray:horizonatalConstraints]];
self.styleLoadingExpectation = [self expectationWithDescription:@"Map view should finish loading style."];
[self waitForExpectationsWithTimeout:5 handler:nil];
[self waitForExpectationsWithTimeout:10 handler:nil];
self.mapView.showsScale = YES;