Ben Copsey

Tests tweak

... ... @@ -133,7 +133,6 @@
ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease];
[request start];
NSLog([request responseString]);
BOOL success = [[request responseString] isEqualToString:@"HTTP/1.1"];
GHAssertTrue(success,@"Wrong HTTP version used (May fail when using a proxy that changes the HTTP version!)");
... ...
... ... @@ -313,9 +313,6 @@ IMPORTANT
complete = YES;
}
- (void)testProgressWithAuthentication
{
complete = NO;
... ...
... ... @@ -66,14 +66,11 @@ static NSString *proxyPassword = @"";
}
- (void)testProxyAutodetect
{
BOOL success = (![proxyHost isEqualToString:@""] && proxyPort > 0);
GHAssertTrue(success,@"You need to supply the details of your proxy to run the proxy autodetect test");
{
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com"]];
[request start];
success = ([request proxyHost] && [request proxyPort]);
BOOL success = ([request proxyHost] && [request proxyPort]);
GHAssertTrue(success,@"Failed to detect the proxy");
}
... ...