Skip to content

Conversation

@Guardiola31337
Copy link
Contributor

Description

Cleans up MapboxNativeNavigator

Follow up from #2839 (comment) and #2852

Refs. #2855 and #2787

  • I have added any issue links
  • I have added all related labels (bug, feature, new API(s), SEMVER, etc.)
  • I have added the appropriate milestone and project boards

Goal

General cleanup

Implementation

  • Remove coroutineRule.runBlockingTest in ThreadControllerTest not needed (was increasing the test execution time unnecessarily)
  • Remove routeIndex from MapboxNativeNavigator#setRoute as multiple routes is not supported
  • Remove unnecessary every { context.unregisterReceiver(any()) } answers {} from MapboxHybridRouterTest

Testing

  • I have tested locally (including SNAPSHOT upstream dependencies if needed) through testapp/demo app and run all activities to avoid regressions
  • I have tested via a test drive, or a simulation/mock location app
  • New and existing unit tests pass locally with my changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have updated the CHANGELOG including this PR

cc @kmadsen @cafesilencio

@Guardiola31337 Guardiola31337 added ✓ ready for review Core Work related to core navigation and integrations. labels Apr 29, 2020
@Guardiola31337 Guardiola31337 added this to the v1.0.0 milestone Apr 29, 2020
@Guardiola31337 Guardiola31337 self-assigned this Apr 29, 2020

@Test
fun jobCountValidationNonUIScope() = coroutineRule.runBlockingTest {
fun jobCountValidationNonUIScope() {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this test should actually use coroutineRule.runBlockingTest

since it delays inside

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nah that's what I was saying here #2839 (comment) It actually makes the test execution slower so I reverted 😉

@Guardiola31337 Guardiola31337 merged commit e54741e into master Apr 29, 2020
@Guardiola31337 Guardiola31337 deleted the pg-navigator-cleanup branch April 29, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Work related to core navigation and integrations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants