Skip to content

Commit

Permalink
[Network] fixed definition of TTURLRequestUseQueueTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tonklon committed Jan 6, 2012
1 parent cb100b8 commit 575858d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Three20Network/NetworkRequestTimeoutTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 2 additions & 2 deletions src/Three20Network/Sources/TTURLRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#import "Three20Core/NSStringAdditions.h"

static NSString* kStringBoundary = @"3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f";
const NSTimeInterval TTURLRequestUseDefaultTimeout = -1.0;
const NSTimeInterval TTURLRequestUseQueueTimeout = -1.0;

///////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -107,7 +107,7 @@ - (id)init {
_shouldHandleCookies = YES;
_charsetForMultipart = NSUTF8StringEncoding;
_multiPartForm = YES;
_timeoutInterval = TTURLRequestUseDefaultTimeout;
_timeoutInterval = TTURLRequestUseQueueTimeout;
}
return self;
}
Expand Down

0 comments on commit 575858d

Please sign in to comment.