Skip to content

Commit f47e6b5

Browse files
committed
modify test
1 parent 7f44c42 commit f47e6b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

QiniuSDKTests/QNHttpTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ - (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:300 urlConverter:nil dns:dns];
136+
QNHttpManager *httpManager = [[QNHttpManager alloc] initWithTimeout:300 urlConverter:nil dns:nil];
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];

QiniuSDKTests/QNSessionTest.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ - (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:300 urlConverter:nil dns:dns];
159+
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:300 urlConverter:nil dns:nil];
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];

0 commit comments

Comments
 (0)