test: run tests with a WAL database instead of memorydb

This commit is contained in:
Gauthier Roebroeck 2025-08-28 16:49:27 +08:00
parent 2ec0e295fa
commit 7888a53dbf
4 changed files with 10 additions and 10 deletions

View file

@ -11,7 +11,6 @@ import javax.sql.DataSource
class DataSourcesConfigurationTest {
@SpringBootTest
@ActiveProfiles("test", "waltest")
@Nested
inner class WalMode(
@Autowired private val dataSourceRW: DataSource,
@ -27,6 +26,7 @@ class DataSourcesConfigurationTest {
}
@SpringBootTest
@ActiveProfiles("test", "memorydb")
@Nested
inner class MemoryMode(
@Autowired private val dataSourceRW: DataSource,

View file

@ -0,0 +1,5 @@
komga:
database:
file: "file:database?mode=memory"
tasks-db:
file: "file:tasks?mode=memory"

View file

@ -2,9 +2,11 @@ application.version: TESTING
komga:
database:
file: "file:database?mode=memory"
file: "\${java.io.tmpdir}/database\${random.uuid}.sqlite"
journal-mode: WAL
tasks-db:
file: "file:tasks?mode=memory"
file: "\${java.io.tmpdir}/tasks\${random.uuid}.sqlite"
journal-mode: WAL
spring:
flyway:

View file

@ -1,7 +0,0 @@
komga:
database:
file: "\${java.io.tmpdir}/database.sqlite"
journal-mode: WAL
tasks-db:
file: "\${java.io.tmpdir}/tasks.sqlite"
journal-mode: WAL