App downloads too many of my contributions, without reason (#4916)

* Init commit

* Fixed tests
This commit is contained in:
Devarsh Mavani 2022-03-23 07:45:48 +05:30 committed by GitHub
parent bd9531b969
commit 85bdcd5a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -36,11 +36,10 @@ class ContributionBoundaryCallback @Inject constructor(
}
/**
* It is triggered when the user scrolls to the top of the list User's Contributions are then
* fetched from the network
* It is triggered when the user scrolls to the top of the list
* */
override fun onItemAtFrontLoaded(itemAtFront: Contribution) {
fetchContributions()
}
/**

View file

@ -85,8 +85,6 @@ class ContributionBoundaryCallbackTest {
whenever(mediaClient.getMediaListForUser(anyString()))
.thenReturn(Single.just(listOf(media())))
contributionBoundaryCallback.onItemAtFrontLoaded(mock(Contribution::class.java))
verify(repository).save(anyList());
verify(mediaClient).getMediaListForUser(anyString());
}
@Test