Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspik committed Aug 14, 2018
1 parent a8758d2 commit 3c54e1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Tests/Tests/AFURLSessionManagerTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ - (void)testSessionTaskDoesReportMetrics {
[self waitForExpectationsWithCommonTimeout];
}

- (void)testSessionRecreatesAgain {

[self.localManager setValue:nil forKey:@"session"];

XCTAssertNotNil([self.localManager valueForKey:@"session"]);
}

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

0 comments on commit 3c54e1f

Please sign in to comment.