Ben Copsey

Tweaks to partial resume test

@@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
23 23
24 24
25 // Automatically set on build 25 // Automatically set on build
26 -NSString *ASIHTTPRequestVersion = @"v1.6.1-3 2010-03-25"; 26 +NSString *ASIHTTPRequestVersion = @"v1.6.1-4 2010-03-25";
27 27
28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 28 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
29 29
@@ -715,6 +715,7 @@ IMPORTANT @@ -715,6 +715,7 @@ IMPORTANT
715 715
716 716
717 //Test the temporary file cleanup 717 //Test the temporary file cleanup
  718 + downloadURL = [NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/the_great_american_novel.txt"];
718 complete = NO; 719 complete = NO;
719 progress = 0; 720 progress = 0;
720 networkQueue = [ASINetworkQueue queue]; 721 networkQueue = [ASINetworkQueue queue];
@@ -730,8 +731,8 @@ IMPORTANT @@ -730,8 +731,8 @@ IMPORTANT
730 [networkQueue addOperation:request]; 731 [networkQueue addOperation:request];
731 [networkQueue go]; 732 [networkQueue go];
732 733
733 - // Let the download run for 5 seconds 734 + // Let the download run for 3 seconds
734 - timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(stopQueue:) userInfo:nil repeats:NO]; 735 + timeoutTimer = [NSTimer scheduledTimerWithTimeInterval:3 target:self selector:@selector(stopQueue:) userInfo:nil repeats:NO];
735 while (!complete) { 736 while (!complete) {
736 [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.25]]; 737 [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.25]];
737 } 738 }