Skip to content
Browse files

[Network] fixed definition of TTURLRequestUseQueueTimeout

  • Loading branch information...
1 parent cb100b8 commit 575858d76bee7b56e6f58d05283b94d89086842e @tonklon tonklon committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Three20Network/NetworkRequestTimeoutTests.m
  2. +2 −2 src/Three20Network/Sources/TTURLRequest.m
View
2 src/Three20Network/NetworkRequestTimeoutTests.m
@@ -57,7 +57,7 @@ @implementation NetworkRequestTimeout
///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)testTTURLRequest_timeoutIntervalAccess {
STAssertEqualsWithAccuracy([[[[TTURLRequest alloc] init] autorelease] timeoutInterval],
- (NSTimeInterval)TTURLRequestUseDefaultTimeout,
+ (NSTimeInterval)TTURLRequestUseQueueTimeout,
0.1,
@"default timeout should be set on initialization");
View
4 src/Three20Network/Sources/TTURLRequest.m
@@ -29,7 +29,7 @@
#import "Three20Core/NSStringAdditions.h"
static NSString* kStringBoundary = @"3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f";
-const NSTimeInterval TTURLRequestUseDefaultTimeout = -1.0;
+const NSTimeInterval TTURLRequestUseQueueTimeout = -1.0;
///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -107,7 +107,7 @@ - (id)init {
_shouldHandleCookies = YES;
_charsetForMultipart = NSUTF8StringEncoding;
_multiPartForm = YES;
- _timeoutInterval = TTURLRequestUseDefaultTimeout;
+ _timeoutInterval = TTURLRequestUseQueueTimeout;
}
return self;
}

0 comments on commit 575858d

Please sign in to comment.
Something went wrong with that request. Please try again.