From bf48c6c9aa54d788a0eb91ea088fdcbe626b4864 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 27 Jan 2020 17:02:53 +0800 Subject: [PATCH] Fix the test case because of cache --- SDWebImageWebPCoderTests/SDWebImageWebPCoderTests.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SDWebImageWebPCoderTests/SDWebImageWebPCoderTests.m b/SDWebImageWebPCoderTests/SDWebImageWebPCoderTests.m index 97e9b75..9c7b6d9 100644 --- a/SDWebImageWebPCoderTests/SDWebImageWebPCoderTests.m +++ b/SDWebImageWebPCoderTests/SDWebImageWebPCoderTests.m @@ -38,6 +38,8 @@ const int64_t kAsyncTestTimeout = 5; @implementation SDWebImageWebPCoderTests + (void)setUp { + [SDImageCache.sharedImageCache clearMemory]; + [SDImageCache.sharedImageCache clearDiskOnCompletion:nil]; [[SDImageCodersManager sharedManager] addCoder:[SDImageWebPCoder sharedCoder]]; }