Ben Copsey

Tests tweak

@@ -133,7 +133,6 @@ @@ -133,7 +133,6 @@
133 ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease]; 133 ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease];
134 [request start]; 134 [request start];
135 135
136 - NSLog([request responseString]);  
137 BOOL success = [[request responseString] isEqualToString:@"HTTP/1.1"]; 136 BOOL success = [[request responseString] isEqualToString:@"HTTP/1.1"];
138 GHAssertTrue(success,@"Wrong HTTP version used (May fail when using a proxy that changes the HTTP version!)"); 137 GHAssertTrue(success,@"Wrong HTTP version used (May fail when using a proxy that changes the HTTP version!)");
139 138
@@ -313,9 +313,6 @@ IMPORTANT @@ -313,9 +313,6 @@ IMPORTANT
313 complete = YES; 313 complete = YES;
314 } 314 }
315 315
316 -  
317 -  
318 -  
319 - (void)testProgressWithAuthentication 316 - (void)testProgressWithAuthentication
320 { 317 {
321 complete = NO; 318 complete = NO;
@@ -67,13 +67,10 @@ static NSString *proxyPassword = @""; @@ -67,13 +67,10 @@ static NSString *proxyPassword = @"";
67 67
68 - (void)testProxyAutodetect 68 - (void)testProxyAutodetect
69 { 69 {
70 - BOOL success = (![proxyHost isEqualToString:@""] && proxyPort > 0);  
71 - GHAssertTrue(success,@"You need to supply the details of your proxy to run the proxy autodetect test");  
72 -  
73 ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]]; 70 ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]];
74 [request start]; 71 [request start];
75 72
76 - success = ([request proxyHost] && [request proxyPort]); 73 + BOOL success = ([request proxyHost] && [request proxyPort]);
77 GHAssertTrue(success,@"Failed to detect the proxy"); 74 GHAssertTrue(success,@"Failed to detect the proxy");
78 } 75 }
79 76