mirror of
https://github.com/theotherp/nzbhydra2.git
synced 2026-02-06 11:17:18 +00:00
Configure hydra with absolute blackhole path
This commit is contained in:
parent
525dc13dbb
commit
6564bececd
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user