Skip to content

Commit 7f44c42

Browse files
committed
ios test
1 parent bb63d57 commit 7f44c42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

QiniuSDKTests/QNHttpTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ - (void)testPostHttps {
133133
__block QNResponseInfo *testInfo = nil;
134134
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
135135
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
136-
QNHttpManager *httpManager = [[QNHttpManager alloc] initWithTimeout:60 urlConverter:nil dns:dns];
136+
QNHttpManager *httpManager = [[QNHttpManager alloc] initWithTimeout:300 urlConverter:nil dns:dns];
137137
[httpManager post:@"https://up.qbox.me" withData:nil withParams:nil withHeaders:nil withCompleteBlock: ^(QNResponseInfo *info, NSDictionary *resp) {
138138
testInfo = info;
139139
} withProgressBlock:nil withCancelBlock:nil];
140140

141-
AGWW_WAIT_WHILE(testInfo == nil, 100.0);
141+
AGWW_WAIT_WHILE(testInfo == nil, 300.0);
142142
NSLog(@"%@", testInfo);
143143
XCTAssert(testInfo.reqId, @"Pass");
144144
}

QiniuSDKTests/QNSessionTest.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,12 @@ - (void)testPostHttps {
156156
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
157157
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
158158
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
159-
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:60 urlConverter:nil dns:dns];
159+
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:300 urlConverter:nil dns:dns];
160160
[httpManager post:@"https://up.qbox.me" withData:data withParams:nil withHeaders:nil withCompleteBlock: ^(QNResponseInfo *info, NSDictionary *resp) {
161161
testInfo = info;
162162
} withProgressBlock:nil withCancelBlock:nil];
163163

164-
AGWW_WAIT_WHILE(testInfo == nil, 100.0);
164+
AGWW_WAIT_WHILE(testInfo == nil, 300.0);
165165
NSLog(@"%@", testInfo);
166166
XCTAssert(testInfo.reqId, @"Pass");
167167
}

0 commit comments

Comments
 (0)