Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios, macos] increase timeout to 2 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni authored and jfirebaugh committed Sep 21, 2016
1 parent 2c8e030 commit c00b129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/darwin/test/MGLOfflineStorageTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ - (void)setUp {
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.");
Expand Down Expand Up @@ -63,7 +63,7 @@ - (void)testAddPack {
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.");

Expand Down

0 comments on commit c00b129

Please sign in to comment.