Skip to content

Commit

Permalink
Change default teardown methods to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspik committed Sep 11, 2018
1 parent 0579f71 commit af23240
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Tests/Tests/AFHTTPSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)setUp {
}

- (void)tearDown {
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:YES];
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.sessionManager = nil;
[super tearDown];
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/AFImageDownloaderTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (void)setUp {
}

- (void)tearDown {
[self.downloader.sessionManager invalidateSessionCancelingTasks:YES resetSession:YES];
[self.downloader.sessionManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.downloader = nil;
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/AFNetworkActivityManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (void)tearDown {
[super tearDown];
self.networkActivityIndicatorManager = nil;

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

Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/AFUIActivityIndicatorViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ - (void)setUp {

- (void)tearDown {
[super tearDown];
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:YES];
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.sessionManager = nil;
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/AFUIRefreshControlTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ - (void)setUp {

- (void)tearDown {
[super tearDown];
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:YES];
[self.sessionManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.sessionManager = nil;
}

Expand Down
4 changes: 2 additions & 2 deletions Tests/Tests/AFURLSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ - (void)setUp {
- (void)tearDown {
[super tearDown];
[self.localManager.session.configuration.URLCache removeAllCachedResponses];
[self.localManager invalidateSessionCancelingTasks:YES resetSession:YES];
[self.localManager invalidateSessionCancelingTasks:YES resetSession:NO];
self.localManager = nil;

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

Expand Down

0 comments on commit af23240

Please sign in to comment.