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

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update accessing the access token
Browse files Browse the repository at this point in the history
jmkiley committed Jun 25, 2020

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
1 parent c826eb9 commit 81c6a50
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -813,8 +813,8 @@ - (void)waitForCollisionDetectionToRun {
self.renderFinishedExpectation = [self expectationWithDescription:@"Map view should be rendered"];
XCTestExpectation *timerExpired = [self expectationWithDescription:@"Timer expires"];

// Wait 1/2 second
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(NSEC_PER_SEC >> 1)), dispatch_get_main_queue(), ^{
// Wait 1/2 second¨
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[timerExpired fulfill];
});

6 changes: 2 additions & 4 deletions platform/ios/Integration Tests/MGLIntegrationTestCase.m
Original file line number Diff line number Diff line change
@@ -44,13 +44,11 @@ - (void)setUp {
NSString *accessToken;

if ([self.name containsString:@"🔒"]) {
accessToken = [[NSProcessInfo processInfo] environment][@"MAPBOX_ACCESS_TOKEN"];
accessToken = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MGLMapboxAccessToken"];

if (!accessToken) {
printf("warning: MAPBOX_ACCESS_TOKEN env var is required for test '%s' - trying anyway.\n", self.name.UTF8String);
printf("warning: MGLMapboxAccessToken info.plist key is required for test '%s' - trying anyway.\n", self.name.UTF8String);
}
}

[MGLAccountManager setAccessToken:accessToken ?: @"pk.feedcafedeadbeefbadebede"];
}
@end

0 comments on commit 81c6a50

Please sign in to comment.