File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments