Fix the test case because of cache

This commit is contained in:
DreamPiggy 2020-01-27 17:02:53 +08:00
parent 681023124b
commit bf48c6c9aa
1 changed files with 2 additions and 0 deletions

View File

@ -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]];
}