From 8368bd4878ffe89bbdc96ba681efb2dc69fa24aa Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Wed, 17 Oct 2018 12:17:50 -0700 Subject: [tests, darwin] Standardize on 10 second timeout for map loading 5 second timeouts have been intermittently failing on CI. --- platform/darwin/test/MGLDocumentationExampleTests.swift | 2 +- platform/darwin/test/MGLDocumentationGuideTests.swift | 2 +- platform/ios/Integration Tests/MGLMapViewIntegrationTest.m | 2 +- platform/ios/test/MGLMapViewLayoutTests.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/darwin/test/MGLDocumentationExampleTests.swift b/platform/darwin/test/MGLDocumentationExampleTests.swift index a8f92dd528..028ee2e856 100644 --- a/platform/darwin/test/MGLDocumentationExampleTests.swift +++ b/platform/darwin/test/MGLDocumentationExampleTests.swift @@ -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() { diff --git a/platform/darwin/test/MGLDocumentationGuideTests.swift b/platform/darwin/test/MGLDocumentationGuideTests.swift index b7f654aceb..b1e2bb843f 100644 --- a/platform/darwin/test/MGLDocumentationGuideTests.swift +++ b/platform/darwin/test/MGLDocumentationGuideTests.swift @@ -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() { diff --git a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m index 7153257df5..0138a255ec 100644 --- a/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m +++ b/platform/ios/Integration Tests/MGLMapViewIntegrationTest.m @@ -48,7 +48,7 @@ [window makeKeyAndVisible]; if (!self.mapView.style) { - [self waitForMapViewToFinishLoadingStyleWithTimeout:5]; + [self waitForMapViewToFinishLoadingStyleWithTimeout:10]; } } diff --git a/platform/ios/test/MGLMapViewLayoutTests.m b/platform/ios/test/MGLMapViewLayoutTests.m index 4bdff51e25..dfae346289 100644 --- a/platform/ios/test/MGLMapViewLayoutTests.m +++ b/platform/ios/test/MGLMapViewLayoutTests.m @@ -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; -- cgit v1.2.1