Refactor LibraryUpdateService a bit for future changes
(cherry picked from commit b5c2934270)
# Conflicts:
# app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt
This commit is contained in:
@@ -100,7 +100,8 @@ class LibraryUpdateServiceTest {
|
||||
val intent = Intent()
|
||||
val target = LibraryUpdateService.Target.CHAPTERS
|
||||
runBlocking {
|
||||
service.updateChapterList(service.getMangaToUpdate(intent, target))
|
||||
service.addMangaToQueue(intent, target)
|
||||
service.updateChapterList()
|
||||
|
||||
// There are 3 network attempts and 2 insertions (1 request failed)
|
||||
assertThat(service.db.getChapters(favManga[0]).executeAsBlocking()).hasSize(2)
|
||||
|
||||
Reference in New Issue
Block a user