diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-03-06 21:41:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 21:41:05 +0100 |
commit | 95b97b6f49e96c659c2ef09a81c93b040a99f888 (patch) | |
tree | ced326dc7d38d40f8d6bd5cd0a2af6322cf0ce94 /core/src/test | |
parent | 24d1a06662c8eec31f3a4c3ebdcd3aea759fb63a (diff) | |
download | AntennaPod-95b97b6f49e96c659c2ef09a81c93b040a99f888.zip |
Warn when local folder is empty instead of silently ignoring (#6366)
Diffstat (limited to 'core/src/test')
-rw-r--r-- | core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java index a04884cac..7c877103f 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/feed/LocalFeedUpdaterTest.java @@ -26,6 +26,7 @@ import org.robolectric.RobolectricTestRunner; import org.robolectric.shadows.ShadowMediaMetadataRetriever; import java.io.File; +import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -262,7 +263,11 @@ public class LocalFeedUpdaterTest { // call method to test Feed feed = new Feed(FEED_URL, null); - LocalFeedUpdater.tryUpdateFeed(feed, context, null, null); + try { + LocalFeedUpdater.tryUpdateFeed(feed, context, null, null); + } catch (IOException e) { + throw new RuntimeException(e); + } } } |