diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-09-02 14:04:56 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-09-02 14:04:56 +0200 |
commit | 8f37a1987588bc6a33473c6c98c8033d038dcf30 (patch) | |
tree | a15b3cc622ac1753d7d79ebe1da548812008da83 /tests | |
parent | 05abff69f105bc550d33ba969878995399ebf314 (diff) | |
download | AntennaPod-8f37a1987588bc6a33473c6c98c8033d038dcf30.zip |
Reduced memory usage of tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java b/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java index 747ac623b..3803fa774 100644 --- a/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java +++ b/tests/src/de/danoeh/antennapod/test/FeedHandlerTest.java @@ -399,7 +399,7 @@ public class FeedHandlerTest extends AndroidTestCase { } private void downloadFeed(Feed feed) throws IOException { - int num_retries = 2; + int num_retries = 5; boolean successful = false; for (int i = 0; i < num_retries; i++) { @@ -473,9 +473,12 @@ public class FeedHandlerTest extends AndroidTestCase { public void testParseFeeds() { Log.i(TAG, "Testing RSS feeds"); - for (Feed feed : feeds) { + while (!feeds.isEmpty()) { + Feed feed = feeds.get(0); parseFeed(feed); + feeds.remove(0); } + Log.i(TAG, "RSS Test completed"); } |