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

Fix unstable test cases in LocationCollectionClientInstrumentedTest #369

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

Chaoba
Copy link
Contributor

@Chaoba Chaoba commented Mar 21, 2019

Some test cases in LocationCollectionClientInstrumentedTest is unstable, use CountDownLatch to instead of sleep.
In unInstall method of LocationCollectionClientInstrumentedTest, we don't unregister listener, so it will not release current object. Call unregisterOnSharedPreferenceChangeListener to fix it.

@Chaoba Chaoba self-assigned this Mar 21, 2019
@codecov
Copy link

codecov bot commented Mar 21, 2019

Codecov Report

Merging #369 into master will decrease coverage by <.01%.
The diff coverage is 50%.

@@             Coverage Diff              @@
##             master     #369      +/-   ##
============================================
- Coverage     57.01%   57.01%   -0.01%     
  Complexity      490      490              
============================================
  Files           101      101              
  Lines          3171     3173       +2     
  Branches        216      216              
============================================
+ Hits           1808     1809       +1     
- Misses         1275     1276       +1     
  Partials         88       88

@andrlee andrlee merged commit ff9bf35 into master Mar 21, 2019
@andrlee andrlee deleted the kl-fix-test branch March 21, 2019 17:22
@andrlee andrlee restored the kl-fix-test branch March 21, 2019 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants