From d1c73dda5b5e7d9346c24d323461810bac18499e Mon Sep 17 00:00:00 2001 From: orionlee Date: Wed, 14 Nov 2018 14:14:15 -0800 Subject: episode cleanup 12 hour option - use hours internally part 2 (persisted shared preference) requires data migartion: app versionCode increased to 1070196 --- .../java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/test/java/de/danoeh') diff --git a/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java b/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java index dc4054af8..9f354c7c2 100644 --- a/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java +++ b/core/src/test/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithmTest.java @@ -11,7 +11,7 @@ public class APCleanupAlgorithmTest { @Test public void testCalcMostRecentDateForDeletion() throws Exception { - APCleanupAlgorithm algo = new APCleanupAlgorithm(1.0f); + APCleanupAlgorithm algo = new APCleanupAlgorithm(24); Date curDateForTest = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse("2018-11-13T14:08:56-0800"); Date resExpected = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse("2018-11-12T14:08:56-0800"); Date resActual = algo.calcMostRecentDateForDeletion(curDateForTest); -- cgit v1.2.3