Permalink
Browse files

Fix urls in tests

  • Loading branch information...
1 parent ab5f503 commit 71e46a9e2f2c0f11610e961127350f9f0812fe5d @pokeb committed Jul 13, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 Classes/ASIHTTPRequest.m
  2. +2 −2 Classes/Tests/ASIHTTPRequestTests.m
View
@@ -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;
}
@@ -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");
@@ -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);

0 comments on commit 71e46a9

Please sign in to comment.