diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-24 17:57:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-24 17:57:00 +0100 |
commit | 084b9c231744a5657a620087b4b560db38b66ab8 (patch) | |
tree | f02efc603867831c7dc89e0db969cdf561904e5c /app/src/androidTest/java/de/test/antennapod/service | |
parent | 5218e06904e489f77da4078de775dd0a63b94ef4 (diff) | |
download | AntennaPod-084b9c231744a5657a620087b4b560db38b66ab8.zip |
Store last refresh attempt for feeds (#7022)
Diffstat (limited to 'app/src/androidTest/java/de/test/antennapod/service')
2 files changed, 4 insertions, 2 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java index e8436a3a2..41e8c64d1 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceMediaPlayerTest.java @@ -128,7 +128,8 @@ public class PlaybackServiceMediaPlayerTest { } private Playable writeTestPlayable(String downloadUrl, String fileUrl) { - Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, "i", null, null, "l", false); + Feed f = new Feed(0, null, "f", "l", "d", null, null, null, null, + "i", null, null, "l", System.currentTimeMillis()); FeedPreferences prefs = new FeedPreferences(f.getId(), false, FeedPreferences.AutoDeleteAction.NEVER, VolumeAdaptionSetting.OFF, FeedPreferences.NewEpisodesAction.NOTHING, null, null); f.setPreferences(prefs); diff --git a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java index 9f1fc2261..ea484faca 100644 --- a/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java +++ b/app/src/androidTest/java/de/test/antennapod/service/playback/PlaybackServiceTaskManagerTest.java @@ -63,7 +63,8 @@ public class PlaybackServiceTaskManagerTest { private List<FeedItem> writeTestQueue(String pref) { final int NUM_ITEMS = 10; - Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", null, "null", "url", false); + Feed f = new Feed(0, null, "title", "link", "d", null, null, null, null, "id", + null, "null", "url", System.currentTimeMillis()); f.setItems(new ArrayList<>()); for (int i = 0; i < NUM_ITEMS; i++) { f.getItems().add(new FeedItem(0, pref + i, pref + i, "link", new Date(), FeedItem.PLAYED, f)); |