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

Replace testAAALoadPacks with a setUp method - #6007

Merged
1ec5 merged 1 commit into
masterfrom
1ec5-load-once-6006
Aug 15, 2016
Merged

1ec5 merged 1 commit into
masterfrom
1ec5-load-once-6006

Conversation

@1ec5

@1ec5 1ec5 commented Aug 14, 2016

Copy link
Copy Markdown
Contributor

XCTest apparently no longer executes tests in alphabetical order, so naming the test testAAALoadPacks doesn’t ensure it gets run first. Instead, put the pack loading test inside -setUp, but also put it inside a dispatch_once() block to ensure that it only gets run before the first offline storage test that gets run in the current process.

Fixes #6006.

/cc @friedbunny @boundsj

XCTest apparently no longer executes tests in alphabetical order, so naming the test testAAALoadPacks doesn’t ensure it gets run first. Instead, put the pack loading test inside -setUp, but also put it inside a dispatch_once() block to ensure that it only gets run before the first offline storage test that gets run in the current process.
@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS tests labels Aug 14, 2016
@1ec5 1ec5 added this to the ios-v3.4.0 milestone Aug 14, 2016
@1ec5 1ec5 self-assigned this Aug 14, 2016
@mention-bot

Copy link
Copy Markdown

@1ec5, thanks for your PR! By analyzing this pull request, we identified @friedbunny to be potential reviewers.

@friedbunny

Copy link
Copy Markdown
Contributor

👍

@1ec5
1ec5 merged commit 6675e81 into master Aug 15, 2016
@1ec5
1ec5 deleted the 1ec5-load-once-6006 branch August 15, 2016 15:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants