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

Wait for style loading, then rotation, then compass fading #2932

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Nov 4, 2015

This PR fixes the pretty consistent test failures in #2920 by introducing additional waits. We now wait a bit in -beforeEach (because style and tile loading contributes to sluggishness while rotating), then wait for the map to rotate, then wait for the compass to fade using view-based animation.

The wait in -beforeEach is hard-coded at 500 ms, which is good enough on my machine, but it remains to be seen whether it’s good enough for the CI machines. Ideally I would’ve waited for a -mapViewDidFinishRenderingMap:fullyRendered: callback, but it incorrectly fires after style loading but before tile loading (#2775).

/cc @friedbunny @incanus

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS tests labels Nov 4, 2015
@1ec5 1ec5 self-assigned this Nov 4, 2015
@1ec5 1ec5 added this to the ios-v3.0.0 milestone Nov 4, 2015
@1ec5 1ec5 merged commit 4956c05 into master Nov 4, 2015
@1ec5 1ec5 removed the in progress label Nov 4, 2015
@1ec5 1ec5 deleted the 1ec5-compass-rising-2920 branch November 4, 2015 21:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant