Configure hydra with absolute blackhole path

This commit is contained in:
TheOtherP 2023-11-20 15:23:11 +01:00
parent 525dc13dbb
commit 6564bececd

View File

@ -30,6 +30,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import java.io.File;
import java.nio.file.Paths;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
@ -72,7 +73,7 @@ public class NzbHandlingTest {
@Test
public void shouldSaveToBlackhole() throws Exception {
final BaseConfig config = configManager.getCurrentConfig();
config.getDownloading().setSaveNzbsTo(blackholeFolderNnzbhydra);
config.getDownloading().setSaveNzbsTo(Paths.get(blackholeFolderNnzbhydra).toAbsolutePath().toString());
configManager.setConfig(config);
final String guid = searchResultProvider.findOneGuid();