Skip to content

Commit

Permalink
Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
K1rakishou committed Nov 15, 2018
1 parent 4d3aaf0 commit adde02d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/test/java/CachingImageLoaderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,6 @@ class CachingImageLoaderTest {
}
}

@Test
fun `should not make a network request to get an image if there is already one in progress`() {
repeat(10) {
runBlocking {
val images = listOf(imageUrls[0], imageUrls[0], imageUrls[0], imageUrls[0])
.map {
defaultImageLoader.newRequest()
.load(it)
.transformations(TransformationBuilder().noTransformations())
.saveStrategy(SaveStrategy.SaveOriginalImage)
.getAsync()
}
.map { it.await() }

assertEquals(1, images.count { it != null })
assertEquals(3, images.count { it == null })
}
}
}

@Test
fun `test download images concurrently with enough space in the cache`() {
repeat(5) {
Expand Down

0 comments on commit adde02d

Please sign in to comment.