fix tests

This commit is contained in:
Milos Kozak 2023-10-16 17:24:01 +02:00
parent 2058240197
commit 1d90c6ffc1
5 changed files with 2 additions and 2 deletions

View file

@ -34,8 +34,8 @@ class MaintenancePluginTest : TestBase() {
fun mock() { fun mock() {
sut = MaintenancePlugin(injector, context, rh, sp, nsSettingsStatus, aapsLogger, config, fileListProvider, loggerUtils) sut = MaintenancePlugin(injector, context, rh, sp, nsSettingsStatus, aapsLogger, config, fileListProvider, loggerUtils)
`when`(loggerUtils.suffix).thenReturn(".log.zip") `when`(loggerUtils.suffix).thenReturn(".log.zip")
`when`(loggerUtils.logDirectory).thenReturn("src/test/res/logger") `when`(loggerUtils.logDirectory).thenReturn("src/test/assets/logger")
`when`(fileListProvider.ensureTempDirExists()).thenReturn(File("src/test/res/logger")) `when`(fileListProvider.ensureTempDirExists()).thenReturn(File("src/test/assets/logger"))
} }
@Test fun logFilesTest() { @Test fun logFilesTest() {