mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
test: run tests with a WAL database instead of memorydb
This commit is contained in:
parent
2ec0e295fa
commit
7888a53dbf
4 changed files with 10 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
5
komga/src/test/resources/application-memorydb.yml
Normal file
5
komga/src/test/resources/application-memorydb.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
komga:
|
||||
database:
|
||||
file: "file:database?mode=memory"
|
||||
tasks-db:
|
||||
file: "file:tasks?mode=memory"
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in a new issue