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
2010-03-25 11:25:20 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a7c004d83dd0c9f615b0e6e48a94cf1078e471c0
a7c004d8
1 parent
3532f973
Tweaks to partial resume test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
Classes/ASIHTTPRequest.m
Classes/Tests/ASINetworkQueueTests.m
Classes/ASIHTTPRequest.m
View file @
a7c004d
...
...
@@ -23,7 +23,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.1-
3
2010-03-25"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.6.1-
4
2010-03-25"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
Classes/Tests/ASINetworkQueueTests.m
View file @
a7c004d
...
...
@@ -715,6 +715,7 @@ IMPORTANT
//Test the temporary file cleanup
downloadURL
=
[
NSURL
URLWithString
:
@"http://allseeing-i.com/ASIHTTPRequest/tests/the_great_american_novel.txt"
];
complete
=
NO
;
progress
=
0
;
networkQueue
=
[
ASINetworkQueue
queue
];
...
...
@@ -730,8 +731,8 @@ IMPORTANT
[
networkQueue
addOperation
:
request
];
[
networkQueue
go
];
// Let the download run for
5
seconds
timeoutTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
5
target
:
self
selector
:
@selector
(
stopQueue
:
)
userInfo
:
nil
repeats
:
NO
];
// Let the download run for
3
seconds
timeoutTimer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
3
target
:
self
selector
:
@selector
(
stopQueue
:
)
userInfo
:
nil
repeats
:
NO
];
while
(
!
complete
)
{
[[
NSRunLoop
currentRunLoop
]
runUntilDate
:[
NSDate
dateWithTimeIntervalSinceNow
:
0
.
25
]];
}
...
...
Please
register
or
login
to post a comment