Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-10-03 11:24:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78bf44a21fc073bc2b0c4e22befebb77ee227ef1
78bf44a2
1 parent
4ba4faf0
Tests tweak
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
9 deletions
Classes/Tests/ASIHTTPRequestTests.m
Classes/Tests/ASINetworkQueueTests.m
Classes/Tests/ProxyTests.m
Classes/Tests/ASIHTTPRequestTests.m
View file @
78bf44a
...
...
@@ -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!)"
);
...
...
Classes/Tests/ASINetworkQueueTests.m
View file @
78bf44a
...
...
@@ -313,9 +313,6 @@ IMPORTANT
complete
=
YES
;
}
-
(
void
)
testProgressWithAuthentication
{
complete
=
NO
;
...
...
Classes/Tests/ProxyTests.m
View file @
78bf44a
...
...
@@ -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"
);
}
...
...
Please
register
or
login
to post a comment