Skip to content

Commit

Permalink
uinit test adapt AF4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
戴黎明 committed Apr 16, 2020
1 parent 689668d commit 677889b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MTHawkeyeDemo/MTHawkeyeDemoTests/AFURLSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ - (void)setUp {
- (void)tearDown {
[super tearDown];
[self.localManager.session.configuration.URLCache removeAllCachedResponses];
[self.localManager invalidateSessionCancelingTasks:YES];
[self.localManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.localManager = nil;

[self.backgroundManager invalidateSessionCancelingTasks:YES];
[self.backgroundManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.backgroundManager = nil;
}

Expand Down

0 comments on commit 677889b

Please sign in to comment.