Update tests to invalidate session after usage

This commit is contained in:
DreamPiggy 2017-11-27 00:37:20 +08:00
parent ae96351439
commit a7c8ce5864
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@
- (void)test01ThatSharedDownloaderIsNotEqualToInitDownloader {
SDWebImageDownloader *downloader = [[SDWebImageDownloader alloc] init];
expect(downloader).toNot.equal([SDWebImageDownloader sharedDownloader]);
[downloader invalidateSessionAndCancel:YES];
}
- (void)test02ThatByDefaultDownloaderSetsTheAcceptHTTPHeader {
@ -377,6 +378,7 @@
}];
[self waitForExpectationsWithCommonTimeout];
[downloader invalidateSessionAndCancel:YES];
}
@end