Skip to content

Commit

Permalink
Fix SSL test
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed Mar 25, 2010
1 parent 356a342 commit 3532f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/ASIHTTPRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


// Automatically set on build
NSString *ASIHTTPRequestVersion = @"v1.6.1-2 2010-03-25";
NSString *ASIHTTPRequestVersion = @"v1.6.1-3 2010-03-25";

NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";

Expand Down
2 changes: 1 addition & 1 deletion Classes/Tests/ASIHTTPRequestTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ - (void)test000SSL
GHAssertNotNil([request error],@"Failed to generate an error for a self-signed certificate (Will fail on the second run in the same session!)");

// Just for testing the request generated a custom error description - don't do this! You should look at the domain / code of the underlyingError in your own programs.
BOOL success = ([[[request error] localizedDescription] isEqualToString:@"A connection failure occurred: SSL problem (possibily a bad/expired/self-signed certificate)"]);
BOOL success = ([[[request error] localizedDescription] isEqualToString:@"A connection failure occurred: SSL problem (possibly a bad/expired/self-signed certificate)"]);
GHAssertTrue(success,@"Generated the wrong error for a self signed cert");

// Turn off certificate validation, and try again
Expand Down

0 comments on commit 3532f97

Please sign in to comment.