From c09da549ce9c90b8c229be323ae3dad27f388736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Cocula?= Date: Wed, 22 May 2019 21:41:15 +0200 Subject: [PATCH] FIX : tests fail if a /var/music folder exists --- .../org/airsonic/player/service/MediaScannerServiceTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java b/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java index 46a487a0..86ffdfae 100644 --- a/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java +++ b/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java @@ -109,6 +109,7 @@ public class MediaScannerServiceTestCase { */ @Test public void testScanLibrary() { + musicFolderDao.getAllMusicFolders().forEach(musicFolder -> musicFolderDao.deleteMusicFolder(musicFolder.getId())); MusicFolderTestData.getTestMusicFolders().forEach(musicFolderDao::createMusicFolder); settingsService.clearMusicFolderCache();