Skip to content

Commit

Permalink
delete iOS 7 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haowenwu committed Sep 7, 2020
1 parent 8af1f02 commit 763160f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions MTHawkeyeDemo/MTHawkeyeDemoTests/AFURLSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,6 @@ - (void)testDownloadTaskDoesReportProgress {
[self waitForExpectationsWithCommonTimeout];
}

// iOS 7 has a bug that may return nil for a session. To simulate that, nil out the
// session and it will return nil itself.
- (void)testFileUploadTaskReturnsNilWithBug {
[self.localManager setValue:nil forKey:@"session"];

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnonnull"
XCTAssertNil([self.localManager uploadTaskWithRequest:[NSURLRequest requestWithURL:self.baseURL]
fromFile:nil
progress:NULL
completionHandler:NULL],
@"Upload task should be nil.");
#pragma GCC diagnostic pop
}

- (void)testUploadTaskDoesReportProgress {
NSMutableString *payload = [NSMutableString stringWithString:@"AFNetworking"];
while ([payload lengthOfBytesUsingEncoding:NSUTF8StringEncoding] < 20000) {
Expand Down

0 comments on commit 763160f

Please sign in to comment.