From c00b129e8071b8a3d3952e4c191a8b55b71607bc Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Tue, 20 Sep 2016 22:08:22 +0200 Subject: [PATCH] [ios, macos] increase timeout to 2 seconds --- platform/darwin/test/MGLOfflineStorageTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/darwin/test/MGLOfflineStorageTests.m b/platform/darwin/test/MGLOfflineStorageTests.m index c2a8e152d..8400cb43c 100644 --- a/platform/darwin/test/MGLOfflineStorageTests.m +++ b/platform/darwin/test/MGLOfflineStorageTests.m @@ -20,7 +20,7 @@ if ([MGLOfflineStorage sharedOfflineStorage].packs) { [expectation fulfill]; } else { - [self waitForExpectationsWithTimeout:1 handler:nil]; + [self waitForExpectationsWithTimeout:2 handler:nil]; } XCTAssertNotNil([MGLOfflineStorage sharedOfflineStorage].packs, @"Shared offline storage object should have a non-nil collection of packs by this point."); @@ -63,7 +63,7 @@ pack = completionHandlerPack; [additionCompletionHandlerExpectation fulfill]; }]; - [self waitForExpectationsWithTimeout:1 handler:nil]; + [self waitForExpectationsWithTimeout:2 handler:nil]; XCTAssertEqual([MGLOfflineStorage sharedOfflineStorage].packs.count, countOfPacks + 1, @"Added pack should have been added to the canonical collection of packs owned by the shared offline storage object. This assertion can fail if this test is run before -testAAALoadPacks.");