Skip to content

Commit

Permalink
Fix urls in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pokeb committed Jul 13, 2009
1 parent ab5f503 commit 71e46a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Classes/ASIHTTPRequest.m
Expand Up @@ -549,7 +549,7 @@ - (void)loadRequest
break;
}

// See if our NSOperationQueue told us to cancel or we need to redirect
// See if our NSOperationQueue told us to cancel
if ([self isCancelled]) {
break;
}
Expand Down
4 changes: 2 additions & 2 deletions Classes/Tests/ASIHTTPRequestTests.m
Expand Up @@ -643,7 +643,7 @@ - (void)testRedirectPreservesSession
{
// Remove any old session cookies
[ASIHTTPRequest clearSession];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/session_redirect"]];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/session_redirect"]];
[request start];
BOOL success = [[request responseString] isEqualToString:@"Take me to your leader"];
GHAssertTrue(success,@"Failed to redirect preserving session cookies");
Expand All @@ -652,7 +652,7 @@ - (void)testRedirectPreservesSession
- (void)testTooMuchRedirection
{
// This url will simply send a 302 redirect back to itself
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://asi/ASIHTTPRequest/tests/one_infinite_loop"]];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/one_infinite_loop"]];
[request start];
GHAssertNotNil([request error],@"Failed to generate an error when redirection occurs too many times");
BOOL success = ([[request error] code] == ASITooMuchRedirectionErrorType);
Expand Down

0 comments on commit 71e46a9

Please sign in to comment.