From 19e0281afea10124ea207030d8097e9a9fecdd9a Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Tue, 7 Nov 2017 20:24:04 -0800 Subject: [PATCH] Bug 1411654 - Pre: Clear icon disk storage in test. r=mcomella Newer versions of Robolectric seem to have different semantics about clearing disk caches, so this is necessary. But for older versions, it shouldn't hurt, and is slightly more clear than relying on an implicit clear. MozReview-Commit-ID: LRcaEPasXj8 --HG-- extra : rebase_source : fee00a6a068d68e7f7978df56bcad94997d70afb --- .../org/mozilla/gecko/icons/preparation/TestLookupIconUrl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile/android/app/src/test/java/org/mozilla/gecko/icons/preparation/TestLookupIconUrl.java b/mobile/android/app/src/test/java/org/mozilla/gecko/icons/preparation/TestLookupIconUrl.java index 99bac076bb7d..9fcbdabf0419 100644 --- a/mobile/android/app/src/test/java/org/mozilla/gecko/icons/preparation/TestLookupIconUrl.java +++ b/mobile/android/app/src/test/java/org/mozilla/gecko/icons/preparation/TestLookupIconUrl.java @@ -28,6 +28,7 @@ public class TestLookupIconUrl { @Before public void setUp() { MemoryStorage.get().evictAll(); + DiskStorage.get(RuntimeEnvironment.application).evictAll(); } @Test