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

[android] - wrap mapbox map test in ViewActions #7451

Merged
merged 1 commit into from
Dec 15, 2016
Merged

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Dec 15, 2016

Refs #6546, Closes #7447, this PR attempts to make our MapboxMap tests more robust by wrapping the executed code in a ViewAction. This ensures that we are calling MapboxMap methods from the application UI thread. I have done ~20 tests locally without seeing the exception from #7447, will setup some additional tests on CI to be 💯 that this change fixes the issue.

Review @cammace
cc @mapbox/android @jfirebaugh

@tobrun tobrun added Android Mapbox Maps SDK for Android tests labels Dec 15, 2016
@tobrun tobrun added this to the android-v5.0.0 milestone Dec 15, 2016
@tobrun tobrun self-assigned this Dec 15, 2016
@tobrun tobrun requested a review from cammace December 15, 2016 11:36
@tobrun
Copy link
Member Author

tobrun commented Dec 15, 2016

I started 5 builds on bitrise to validate the change, all 5 builds have passed, calling this resolved.

@tobrun tobrun requested a review from ivovandongen December 15, 2016 13:23
Copy link
Contributor

@ivovandongen ivovandongen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tobrun tobrun merged commit 858854b into master Dec 15, 2016
@tobrun tobrun deleted the 7447-looper-crash branch December 15, 2016 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Looper crash on MapboxMapTest
2 participants