mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-23 21:27:40 +03:00
Fix LibraryUpdateServiceTest so ./gradlew ... doesn't crash (#4821)
This commit is contained in:
parent
00598879e2
commit
27f55f8098
1 changed files with 2 additions and 1 deletions
|
@ -98,9 +98,10 @@ class LibraryUpdateServiceTest {
|
|||
`when`(source.fetchChapterList(favManga[2])).thenReturn(Observable.just(chapters3))
|
||||
|
||||
val intent = Intent()
|
||||
val categoryId = intent.getIntExtra(LibraryUpdateService.KEY_CATEGORY, -1)
|
||||
val target = LibraryUpdateService.Target.CHAPTERS
|
||||
runBlocking {
|
||||
service.addMangaToQueue(intent, target)
|
||||
service.addMangaToQueue(categoryId, target)
|
||||
service.updateChapterList()
|
||||
|
||||
// There are 3 network attempts and 2 insertions (1 request failed)
|
||||
|
|
Loading…
Reference in a new issue