From ff1a008817db3e3bab93cf78f1b17dcaaf540688 Mon Sep 17 00:00:00 2001 From: eguven Date: Sat, 8 Oct 2016 03:06:24 +0100 Subject: [PATCH] Delete temporary test folders on test exit. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138860196 --- .../exoplayer2/upstream/cache/CachedContentIndexTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/src/androidTest/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndexTest.java b/library/src/androidTest/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndexTest.java index ad64de50ca..4e9171c53b 100644 --- a/library/src/androidTest/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndexTest.java +++ b/library/src/androidTest/java/com/google/android/exoplayer2/upstream/cache/CachedContentIndexTest.java @@ -40,6 +40,11 @@ public class CachedContentIndexTest extends InstrumentationTestCase { index = new CachedContentIndex(cacheDir); } + @Override + protected void tearDown() throws Exception { + TestUtil.recursiveDelete(cacheDir); + } + public void testAddGetRemove() throws Exception { final String key1 = "key1"; final String key2 = "key2";