mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-18 02:03:33 -05:00
Fix tests (#2049)
* Fix test setup * Fix tests * Disable broken CloudflareTest * Add a basic test for Android's Looper
This commit is contained in:
@@ -55,8 +55,9 @@ fun createChapters(
|
||||
mangaId: Int,
|
||||
amount: Int,
|
||||
read: Boolean,
|
||||
start: Int = 1,
|
||||
) {
|
||||
val list = listOf((0 until amount)).flatten().map { 1 }
|
||||
val list = listOf((0 until amount)).flatten().map { it + start }
|
||||
transaction {
|
||||
ChapterTable
|
||||
.batchInsert(list) {
|
||||
|
||||
Reference in New Issue
Block a user