diff --git a/src/Three20Network/NetworkRequestTimeoutTests.m b/src/Three20Network/NetworkRequestTimeoutTests.m index f4bb84a1eb..9d9b2ced51 100644 --- a/src/Three20Network/NetworkRequestTimeoutTests.m +++ b/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"); diff --git a/src/Three20Network/Sources/TTURLRequest.m b/src/Three20Network/Sources/TTURLRequest.m index ac86c93f2a..301af9aa1b 100644 --- a/src/Three20Network/Sources/TTURLRequest.m +++ b/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; }