Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github CI fails even though tests pass locally #1731

Closed
bilal-alsharifi opened this issue Sep 15, 2021 · 0 comments
Closed

Github CI fails even though tests pass locally #1731

bilal-alsharifi opened this issue Sep 15, 2021 · 0 comments
Labels
bug A defect in the library

Comments

@bilal-alsharifi
Copy link
Contributor

Bug Report

There seems to be a strange issue with Mockito that happens randomly sometimes when the tests try to mock View or ViewGroup classes. This issue happens only on GitHub CI and not locally:

com.smartdevicelink.managers.video.HapticInterfaceManagerTest > testRefreshWithUserData[test(AVD) - 10] FAILED 
	org.mockito.exceptions.base.MockitoException:
	Mockito cannot mock this class: class android.view.View.

com.smartdevicelink.managers.video.HapticInterfaceManagerTest > testRefreshHapticData[test(AVD) - 10] FAILED 
	org.mockito.exceptions.base.MockitoException:
	Mockito cannot mock this class: class android.view.View.
Reproduction Steps
  1. Trigger the CI
Expected Behavior

Tests should pass locally and remotely

Observed Behavior

Tests pass locally but fail remotly

OS & Version Information
  • SDL Android Version: 5.2.0
@jordynmackool jordynmackool added the bug A defect in the library label Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
None yet
Development

No branches or pull requests

2 participants